diff options
author | phantom <phantom@FreeBSD.org> | 2001-02-11 15:07:26 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2001-02-11 15:07:26 +0000 |
commit | 8106c1b06abc25bcd5adf33fc30b74abf7cfdeda (patch) | |
tree | 523aceef4ff60317ae6d8b88e40d00f72b79822e /lib/libc/locale/lmonetary.c | |
parent | 4e9c36b3003ffcfb812ef0bea8d7504d6a422c13 (diff) | |
download | FreeBSD-src-8106c1b06abc25bcd5adf33fc30b74abf7cfdeda.zip FreeBSD-src-8106c1b06abc25bcd5adf33fc30b74abf7cfdeda.tar.gz |
Don't try to convert grouping strings in case if C or POSIX locale
was explicitly specified.
Submitted by: ache
Diffstat (limited to 'lib/libc/locale/lmonetary.c')
-rw-r--r-- | lib/libc/locale/lmonetary.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/lmonetary.c b/lib/libc/locale/lmonetary.c index e42c6c5..8e98749 100644 --- a/lib/libc/locale/lmonetary.c +++ b/lib/libc/locale/lmonetary.c @@ -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; |