1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Fix omission: update radix point on LANG change (re: f0386a87)

Of course we need to check LC_LANG (for the LANG variable) as well.
This commit is contained in:
Martijn Dekker 2022-06-05 14:27:31 +01:00
parent e3aa32a129
commit a0effeb0dc
2 changed files with 9 additions and 1 deletions

View file

@ -415,5 +415,13 @@ then
"(expected $(printf %q "$exp"); got $(printf %q "$got"))"
fi
# ======
(LANG=C_EU && LC_NUMERIC=C && let .5) || err_exit "radix point not updated by LC_NUMERIC"
(LANG=C && LC_NUMERIC=C_EU && let ,5) || err_exit "radix point not updated by LC_NUMERIC"
(LC_NUMERIC=C_EU && LC_ALL=C && let .5) || err_exit "radix point not updated by LC_ALL"
(LC_NUMERIC=C && LC_ALL=C_EU && let ,5) || err_exit "radix point not updated by LC_ALL"
(LC_ALL=C_EU && unset LC_ALL && LANG=C && let .5) || err_exit "radix point not updated by LANG"
(LC_ALL=C && unset LC_ALL && LANG=C_EU && let ,5) || err_exit "radix point not updated by LANG"
# ======
exit $((Errors<125?Errors:125))