1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00
freebsd/lib
Martin Cracauer 3a921aa75d Fix PR
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
2010-02-10 00:02:09 +00:00
..
bind Commit copyright-only changes to generated files as part of the 2010-01-25 04:42:54 +00:00
csu Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libalias
libarchive Don't try to hardlink block or character device nodes that come out 2010-01-23 07:57:17 +00:00
libauditd Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libautofs Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libbegemot Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libbluetooth
libbsm Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libbsnmp
libbz2 Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libc Fix PR 2010-02-10 00:02:09 +00:00
libc_r
libcalendar Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libcam Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libcom_err
libcompat Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libcrypt Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libdevinfo Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libdevstat Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libdisk
libdwarf Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libedit Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libefi Various fixes like spelling, style and syntax. 2010-02-09 18:43:20 +00:00
libelf Remove useless .TE groff macro. 2010-01-12 17:38:23 +00:00
libexpat Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libfetch Document HTTP digest authentication support. 2010-01-26 15:06:22 +00:00
libftpio Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libgeom Correct a typo (when we talk about offset, it should 2010-01-17 08:12:28 +00:00
libgpib Finally, document libgpib. 2010-02-01 20:53:55 +00:00
libgssapi Correct the HISTORY section of these man pages to show when the function, 2010-01-26 15:03:33 +00:00
libipsec Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libipx Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libjail Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libkiconv Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libkse
libkvm Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libmagic Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libmd Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libmemstat
libmilter Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libmp Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libncp Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libnetgraph bring the NGM_IPFW_COOKIE back into ng_ipfw.h, libnetgraph expects 2009-12-28 12:29:13 +00:00
libngatm Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libopie Let libopie use utmpx instead of utmp. 2010-01-13 18:02:30 +00:00
libpam Respect passwordtime from login.conf if set. 2010-02-02 13:47:18 +00:00
libpcap Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libpmc Bug fix: add a missing initializer. 2010-01-12 17:03:55 +00:00
libproc Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libradius Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
librpcsec_gss Correct a bunch of typos. 2010-01-27 21:01:21 +00:00
librpcsvc
librt Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libsbuf Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libsdp
libsm Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libsmb
libsmdb Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libsmutil Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libstand fix a comment typo 2010-01-18 19:10:14 +00:00
libtacplus Correct comment typo. 2010-01-21 15:01:09 +00:00
libtelnet
libthr Merge r195129 from project/mips to head by hand: 2010-01-09 00:07:47 +00:00
libthread_db Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libufs Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libugidfw Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libulog Remove utmpx stub from libulog. 2010-01-13 18:53:06 +00:00
libusb Add a function to check if the usb devices is still connected. 2010-01-29 02:44:06 +00:00
libusbhid
libutil Fix a regression that was introduced in r191882. 2010-01-17 17:52:35 +00:00
libvgl Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libwrap Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
liby Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libypclnt Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libz Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
msun Placate new binutils, by using 16-bit %ax instead of 32-bit %eax as an 2010-02-03 20:23:47 +00:00
ncurses Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
Makefile Introduce libefi -- a library around EFI runtime services and protocols. 2010-01-30 04:24:03 +00:00
Makefile.inc Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00