mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
Don't try to convert grouping strings in case if C or POSIX locale
was explicitly specified. Submitted by: ache
This commit is contained in:
parent
d888fc4e73
commit
9040b756dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72359
@ -68,7 +68,7 @@ __monetary_load_locale(const char *name) {
|
||||
ret = __part_load_locale(name, &_monetary_using_locale,
|
||||
monetary_locale_buf, "LC_MONETARY", LCMONETARY_SIZE,
|
||||
(const char **)&_monetary_locale);
|
||||
if (!ret)
|
||||
if (!ret && _monetary_using_locale)
|
||||
_monetary_locale.mon_grouping =
|
||||
__fix_locale_grouping_str(_monetary_locale.mon_grouping);
|
||||
return ret;
|
||||
|
@ -56,7 +56,7 @@ __numeric_load_locale(const char *name) {
|
||||
ret = __part_load_locale(name, &_numeric_using_locale,
|
||||
numeric_locale_buf, "LC_NUMERIC", LCNUMERIC_SIZE,
|
||||
(const char **)&_numeric_locale);
|
||||
if (!ret)
|
||||
if (!ret && _numeric_using_locale)
|
||||
_numeric_locale.grouping =
|
||||
__fix_locale_grouping_str(_numeric_locale.grouping);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user