mirror of
https://git.zap.org.au/git/trader.git
synced 2024-11-03 17:27:29 -05:00
Assume MOD_POSIX_CURRENCY_SYMBOL contains only ASCII characters
The GNU library now has "C.UTF-8" as a locale (which is NOT a single-byte locale!), but we assume the currency symbol in MOD_POSIX_CURRENCY_SYMBOL contains only ASCII characters.
This commit is contained in:
parent
d20cc2b5ec
commit
bf76fa312c
@ -345,9 +345,9 @@ ssize_t l_strfmon (char *restrict s, size_t maxsize,
|
||||
if (strstr(format, "!") == NULL) {
|
||||
/* Insert lconvinfo.currency_symbol to s.
|
||||
|
||||
NB: add_currecy_symbol == true assumes POSIX locale:
|
||||
single-byte strings are in effect, so strlen(), etc, work
|
||||
correctly. */
|
||||
NB: add_currecy_symbol == true assumes a POSIX locale and
|
||||
that MOD_POSIX_CURRENCY_SYMBOL contains only ASCII-safe
|
||||
characters that work with strlen(), etc. */
|
||||
const char *sym = lconvinfo.currency_symbol;
|
||||
int symlen = strlen(sym);
|
||||
char *p;
|
||||
|
Loading…
Reference in New Issue
Block a user