mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
3a921aa75d
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/143350 Empty string test gone wrong. Testing this requires that you have a locale that has the sign string unset but has int_n_sign_posn set (the default locale falls through to use "()" around negative numbers which is probably another bug). I created that setup by hand and indeed without this fix negative numbers are put out as positive numbers (doesn't fall through to use "-" as default indicator). Unfixed example in nl_NL.ISO8859-1 with lc->negative_sign set to empty string: strfmon(buf, sizeof(buf), "%-8i", -42.0); ==> example2: 'EUR 42,00' 'Eu 42,00' Fixed: example2: 'EUR 42,00-' 'Eu 42,00-' This file and suggested fix are identical in at least freebsd-8. Backport might be appropriate but some expert on locales should probably have a look at us defaulting to negative numbers in parenthesis when LC_* is default. That doesn't look right and is not what other OSes are doing. PR: 143350 Submitted by: Corinna Vinschen Reviewed by: bug reporter submitted, tested by me |
||
---|---|---|
.. | ||
_Exit.c | ||
a64l.3 | ||
a64l.c | ||
abort.3 | ||
abort.c | ||
abs.3 | ||
abs.c | ||
alloca.3 | ||
atexit.3 | ||
atexit.c | ||
atexit.h | ||
atof.3 | ||
atof.c | ||
atoi.3 | ||
atoi.c | ||
atol.3 | ||
atol.c | ||
atoll.c | ||
bsearch.3 | ||
bsearch.c | ||
div.3 | ||
div.c | ||
exit.3 | ||
exit.c | ||
getenv.3 | ||
getenv.c | ||
getopt_long.3 | ||
getopt_long.c | ||
getopt.3 | ||
getopt.c | ||
getsubopt.3 | ||
getsubopt.c | ||
hcreate.3 | ||
hcreate.c | ||
heapsort.c | ||
imaxabs.3 | ||
imaxabs.c | ||
imaxdiv.3 | ||
imaxdiv.c | ||
insque.3 | ||
insque.c | ||
l64a.c | ||
labs.3 | ||
labs.c | ||
ldiv.3 | ||
ldiv.c | ||
llabs.3 | ||
llabs.c | ||
lldiv.3 | ||
lldiv.c | ||
lsearch.3 | ||
lsearch.c | ||
Makefile.inc | ||
malloc.3 | ||
malloc.c | ||
memory.3 | ||
merge.c | ||
posix_memalign.3 | ||
ptsname.3 | ||
ptsname.c | ||
ql.h | ||
qr.h | ||
qsort_r.c | ||
qsort.3 | ||
qsort.c | ||
radixsort.3 | ||
radixsort.c | ||
rand.3 | ||
rand.c | ||
random.3 | ||
random.c | ||
rb.h | ||
reallocf.c | ||
realpath.3 | ||
realpath.c | ||
remque.c | ||
strfmon.3 | ||
strfmon.c | ||
strtod.3 | ||
strtoimax.c | ||
strtol.3 | ||
strtol.c | ||
strtoll.c | ||
strtonum.3 | ||
strtonum.c | ||
strtoq.c | ||
strtoul.3 | ||
strtoul.c | ||
strtoull.c | ||
strtoumax.c | ||
strtouq.c | ||
Symbol.map | ||
system.3 | ||
system.c | ||
tdelete.c | ||
tfind.c | ||
tsearch.3 | ||
tsearch.c | ||
twalk.c |