locale: Allow "" int_curr_Symbol (bug 22294)
commita3e23a2c1d9e871545c6f438a41fcb8ad429cf70
authorCarlos O'Donell <carlos@systemhalted.org>
Fri, 13 Oct 2017 21:33:09 +0000 (13 14:33 -0700)
committerCarlos O'Donell <carlos@systemhalted.org>
Sat, 14 Oct 2017 05:30:19 +0000 (13 22:30 -0700)
tree4852c4d05471bf014dac09eeaaf30c568124f135
parentf16491eb8ebbef402f3da6f4035ce70fe36dec97
locale: Allow "" int_curr_Symbol (bug 22294)

The builtin POSIX locale has "" as the international currency symbol,
but a non-builtin locale may not have such a blank int_curr_symbol.

Therefore to support non-builtin locales with similar "" int_curr_symbol
we adjust the LC_MONETARY parser to allow the normal 4-character
int_curr_symbol *and* the empty "" no symbol. Anything else remains
invalid.

Tested by building all the locales.  Tested also with a custom C.UTF-8
locale with "" for int_curr_symbol.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
ChangeLog
locale/programs/ld-monetary.c