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 {{{<language>}}} field is two lowercase 
characters that represent the language as defined by [#References ISO-639].

Reply via email to