2.6 KiB
2.6 KiB
[c.locales]
28 Text processing library [text]
28.3 Localization library [localization]
28.3.5 C library locales [c.locales]
28.3.5.1 Header synopsis [clocale.syn]
namespace std {struct lconv; char* setlocale(int category, const char* locale); lconv* localeconv();}#define NULL see [support.types.nullptr]#define LC_ALL see below#define LC_COLLATE see below#define LC_CTYPE see below#define LC_MONETARY see below#define LC_NUMERIC see below#define LC_TIME see below
The contents and meaning of the header are the same as the C standard library header <locale.h>.
28.3.5.2 Data races [clocale.data.races]
Calls to the function setlocale may introduce a data race ([res.on.data.races]) with other calls to setlocale or with calls to the functions listed in Table 103.
See also: ISO/IEC 9899:2024, 7.11
Table 103 — Potential setlocale data races [tab:setlocale.data.races]
| ð fprintf |
isprint | iswdigit | localeconv | tolower |
|---|---|---|---|---|
| ð fscanf |
ispunct | iswgraph | mblen | toupper |
| ð isalnum |
isspace | iswlower | mbstowcs | towlower |
| ð isalpha |
isupper | iswprint | mbtowc | towupper |
| ð isblank |
iswalnum | iswpunct | setlocale | wcscoll |
| ð iscntrl |
iswalpha | iswspace | strcoll | wcstod |
| ð isdigit |
iswblank | iswupper | strerror | wcstombs |
| ð isgraph |
iswcntrl | iswxdigit | strtod | wcsxfrm |
| ð islower |
iswctype | isxdigit | strxfrm | wctomb |