From commits-return-2443-apmail-stdcxx-commits-archive=stdcxx.apache.org@stdcxx.apache.org Mon Feb 18 23:05:36 2008 Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 21739 invoked from network); 18 Feb 2008 23:05:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2008 23:05:36 -0000 Received: (qmail 54726 invoked by uid 500); 18 Feb 2008 23:05:30 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 54709 invoked by uid 500); 18 Feb 2008 23:05:30 -0000 Mailing-List: contact commits-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list commits@stdcxx.apache.org Received: (qmail 54700 invoked by uid 99); 18 Feb 2008 23:05:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 15:05:30 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 23:04:52 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 1358AD2DB for ; Mon, 18 Feb 2008 23:05:13 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: commits@stdcxx.apache.org Date: Mon, 18 Feb 2008 23:05:12 -0000 Message-ID: <20080218230512.1974.1743@eos.apache.org> Subject: [Stdcxx Wiki] Update of "LocaleLookup" by MartinSebor X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Stdcxx Wiki" for change notification. The following page has been changed by MartinSebor: http://wiki.apache.org/stdcxx/LocaleLookup The comment on the change is: Added a Problem Statement. ------------------------------------------------------------------------------ [[Anchor(Definitions)]] + + = Problem Statement = + + Modern operating systems provide support for dozens or even hundreds locales. The set of locales installed on a computer is typically determined by the system administrator at the time the operating system is installed. Although there are standards and conventions in place to establish a common locales names due to historical reasons locale names tend to vary from one implementation to another. Operating systems may provide the standard names as well as the traditional ones, with the former simply being aliases for the latter. + + The stdcxx test suite contains tests that exercise the behavior of the localization library. Since the set of installed locales may vary from server to server and since their names need not be consistent across different operating systems, the test stdcxx driver provides mechanisms to determine the names of all locales known to a system. For simplicity, the tests exercise the localization library in all these locales. On systems with many locales installed running these tests may take a considerable amount of time and use up valuable system resources. For example, on AIX systems with all available locales installed running each test can take as much as an hour. Since many of the locale names reference the same locale exercising all of them is wasteful. In addition, since many locales differ only in very minor details (e.g., the values of punctuator characters), exhaustively testing all of them ends up repeatedly executing the same code paths and is unnecessary. + = Definitions = '''canonical language code''': The {{{}}} field is two lowercase characters that represent the language as defined by [#References ISO-639].