Locales

Chapter 21 discusses locales from the perspective of time zones and language preference. Locales—a concept that also developed from the same 1989 ANSI standard discussed earlier—are also important for specifying code-page preference and time and date format. Other important locale data includes the separator character used for displaying large numbers, the decimal character, and the currency symbol. In the function description for GetLocaleInfo is a list of locale settings that can be queried. SetLocaleInfo modifies the locale settings.

Locales are specific to the thread. The function SetThreadLocale changes the locale of a thread. If the locale of the thread is not set, it will use the user default. EnumSystemLocales lists the installed ...

Get Microsoft Windows 2000 API SuperBible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.