aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2025-03-24 21:17:47 +0100
committerCorinna Vinschen <corinna@vinschen.de>2025-03-24 21:28:43 +0100
commite5a9f552ecf908f1639b08729edc191c66f4e7d0 (patch)
treed60c7d83f28e49348a9f7e0277182db8f6f7bddb /newlib/libc/stdlib
parente635174dd1f9cbdda5755c4a2703f0ca85215fa1 (diff)
downloadnewlib-e5a9f552ecf908f1639b08729edc191c66f4e7d0.zip
newlib-e5a9f552ecf908f1639b08729edc191c66f4e7d0.tar.gz
newlib-e5a9f552ecf908f1639b08729edc191c66f4e7d0.tar.bz2
locale: drop global_locale_string, add locale_string to locale_t
After 71511d4ac868 ("getlocalename_l: implement per SUS Base Specifications Issue 8 draft") the Austin Group changed the definition of getlocalename_l() to return setlocale-compatible strings if LC_ALL has been specified. In contrast to the former definition which disallowed LC_ALL as category. In preparation, add a locale_string to every locale_t, and drop the static global_locale_string. This in turn requires to change currentlocale() to work locale-agnostic. Rename to __currentlocale and take two parameters, the locale object and a target string to store the locale string. The latter is required to allow specifiying a target string not in the current locale. Link: https://www.austingroupbugs.net/view.php?id=1741 Fixes: 71511d4ac868 ("getlocalename_l: implement per SUS Base Specifications Issue 8 draft") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions