| title |
Locale Categories | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
article |
| f1_keywords |
LC_MAX |
LC_MIN |
LC_MONETARY |
LC_TIME |
LC_NUMERIC |
LC_COLLATE |
LC_CTYPE |
LC_ALL |
|
| dev_langs |
|
| helpviewer_keywords |
LC_MIN constant |
LC_MONETARY constant |
LC_CTYPE constant |
locale constants |
LC_MAX constant |
LC_ALL constant |
LC_TIME constant |
LC_NUMERIC constant |
LC_COLLATE constant |
|
| ms.assetid |
868f1493-fe5d-4722-acab-bfcd374a063a |
| caps.latest.revision |
7 |
| author |
corob-msft |
| ms.author |
corob |
| manager |
ghogen |
Remarks
Locale categories are manifest constants used by the localization routines to specify which portion of a program's locale information will be used. The locale refers to the locality (or Country/Region) for which certain aspects of your program can be customized. Locale-dependent areas include, for example, the formatting of dates or the display format for monetary values.
| Locale category |
Parts of program affected |
LC_ALL |
All locale-specific behavior (all categories) |
LC_COLLATE |
Behavior of strcoll and strxfrm functions |
LC_CTYPE |
Behavior of character-handling functions (except isdigit, isxdigit, mbstowcs, and mbtowc, which are unaffected) |
LC_MAX |
Same as LC_TIME |
LC_MIN |
Same as LC_ALL |
LC_MONETARY |
Monetary formatting information returned by the localeconv function |
LC_NUMERIC |
Decimal-point character for formatted output routines (for example, printf), data conversion routines, and nonmonetary formatting information returned by localeconv function |
LC_TIME |
Behavior of strftime function |
See setlocale, _wsetlocale for an example.
localeconv
setlocale, _wsetlocale
strcoll Functions
strftime, wcsftime, _strftime_l, _wcsftime_l
strxfrm, wcsxfrm, _strxfrm_l, _wcsxfrm_l
Global Constants