![]() The file format is that accepted by the localedef utility. Locales can be described with the file format presented in this section. Such locales shall beĭocumented using the format specified in this section. If the option is not supported, only implementation-supplied locales are available. The capability to specify additional locales to those provided by an implementation is optional, denoted by the IEEE Std 1003.1-2001 does not require such a facility. Provide facilities for local installation administrators to set the default locale, customizing it for each location. This default locale can be the POSIX locale or any other implementation-defined locale. The POSIX locale can be specified by assigning to the appropriate environment variables the values "C" orĪll implementations shall define a locale as the default locale, to be invoked when no environment variables are set, or set to ![]() For C-language programs, the POSIX locale shall be the default locale when the setlocale() function is not called. The tables in Locale Definition describe the characteristics and behavior of the POSIX locale for dataĬonsisting entirely of characters from the portable character set and the control character set. With input data from the POSIX locale tables in Locale Definition. The POSIX locale shall be as if the locale was defined via the localedef utility The behavior of standard utilities and functions in The implementation shall set the appropriate environment as defined in EnvironmentĬonforming systems shall provide a POSIX locale, also known as the C locale. If the environment variable is unset or is set to the empty string, The value of the corresponding environment variable is used. If the function is invoked with an empty string, such as: setlocale(LC_ALL, "") (or equivalent) with the appropriate value. The current locale, or the codeset is different from the codeset assumed when the locale was created, the result is alsoĪpplications can select the desired locale by invoking the setlocale() function Likewise, if different codesets are used for the data being processed by interfaces whose behavior is dependent on If different character sets are used by the locale categories, the results achieved by an application utilizing these categoriesĪre undefined. Not begin with a slash, the mechanism used to locate the locale is implementation-defined. The type of file (regular, directory, and so on) used to store the locale definition is implementation-defined. ![]() Locale environment variable begins with a slash ( '/' ), it shall be interpreted as the pathname of the locale definition "POSIX" are reserved as identifiers for the POSIX locale (see POSIX Locale). Using environment variables shall be the string specified as the name operand to the localedef utility when the locale was created. The value that is used to specify a locale when ![]() Input to the utility is described in Locale Definition. Interfaces volume of IEEE Std 1003.1-2001 shall provide one or more locales that behave as described in this chapter. Locales other than those supplied by the implementation can be created via the localedef utility, provided that the _POSIX2_LOCALEDEF symbol is defined on the system.Įven if localedef is not provided, all implementations conforming to the System The behavior of some of the C-language functionsĭefined in the System Interfaces volume of IEEE Std 1003.1-2001 shall also be modified based on the current locale, as The standard utilities in the Shell and Utilities volume of IEEE Std 1003.1-2001 shall base their behavior on theĬurrent locale, as defined in the ENVIRONMENT VARIABLES section for each utility. LC_MESSAGES Formats of informative and diagnostic messages and interactive responses. LC_NUMERIC Numeric, non-monetary formatting. Category names correspond to the following environment variable names: LC_CTYPE Character classification and case conversion. Each category is identified by its name and controls specific aspects of the behavior of components A newer edition of this document exists hereĪ locale is the definition of the subset of a user's environment that depends on language and cultural conventions. Locale The Open Group Base Specifications Issue 6Ĭopyright © 2001-2004 The IEEE and The Open Group, All Rights reserved.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |