Files
cppdraft_translate/cppdraft/c/locales.md
2025-10-25 03:02:53 +03:00

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

1

#

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]

1

#

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