<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/stdlib/strfmon.c, branch release/10.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F10.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F10.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-07-19T15:12:38Z</updated>
<entry>
<title>MFC	r268569:</title>
<updated>2014-07-19T15:12:38Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-07-19T15:12:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ace4dc8c80233866135b84b6a6eeead463d4ecf9'/>
<id>urn:sha1:ace4dc8c80233866135b84b6a6eeead463d4ecf9</id>
<content type='text'>
strfmon: reduce unnecessary snprintf.

No need for the snprintf/asprintf dance; use fixed width formats.

Obtained from:	NetBSD (CVS rev. 1.8)
</content>
</entry>
<entry>
<title>Implement xlocale APIs from Darwin, mainly for use by libc++.  This adds a</title>
<updated>2011-11-20T14:45:42Z</updated>
<author>
<name>David Chisnall</name>
<email>theraven@FreeBSD.org</email>
</author>
<published>2011-11-20T14:45:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3c87aa1d3dc1d8dad3efad322852a8e1e76dee55'/>
<id>urn:sha1:3c87aa1d3dc1d8dad3efad322852a8e1e76dee55</id>
<content type='text'>
load of _l suffixed versions of various standard library functions that use
the global locale, making them take an explicit locale parameter.  Also
adds support for per-thread locales.  This work was funded by the FreeBSD
Foundation.

Please test any code you have that uses the C standard locale functions!

Reviewed by:    das (gdtoa changes)
Approved by:    dim (mentor)
</content>
</entry>
<entry>
<title>Fix PR</title>
<updated>2010-02-10T00:02:09Z</updated>
<author>
<name>Martin Cracauer</name>
<email>cracauer@FreeBSD.org</email>
</author>
<published>2010-02-10T00:02:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3a921aa75da792ea26accc85f58b2266511861df'/>
<id>urn:sha1:3a921aa75da792ea26accc85f58b2266511861df</id>
<content type='text'>
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-&gt;negative_sign set to empty
string:
  strfmon(buf, sizeof(buf), "%-8i", -42.0);
==&gt;
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
</content>
</entry>
<entry>
<title>Stricter check for integer overflow.</title>
<updated>2008-04-24T07:49:00Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2008-04-24T07:49:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=eff93c8073fac6bbea85067fd1bd804982770c76'/>
<id>urn:sha1:eff93c8073fac6bbea85067fd1bd804982770c76</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't forget to free() currency_symbol and asciivalue when multiple</title>
<updated>2008-04-19T07:22:58Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2008-04-19T07:22:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5b30d6ca7796d82bf6bd40c559f29c86b07ba572'/>
<id>urn:sha1:5b30d6ca7796d82bf6bd40c559f29c86b07ba572</id>
<content type='text'>
conversion specifiers for them are present.

Submitted by:	Maxim Dounin &lt;mdounin@mdounin.ru&gt;
Obtained from:	NetBSD (partially)
MFC after:	3 days
</content>
</entry>
<entry>
<title>Better strfmon(3) conversion specifiers sanity checking.</title>
<updated>2008-04-19T07:18:22Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2008-04-19T07:18:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3890416f9c76b1736442d49b1f46e603eebee87b'/>
<id>urn:sha1:3890416f9c76b1736442d49b1f46e603eebee87b</id>
<content type='text'>
There were no checks for left and right precisions at all, and
a check for field width had integer overflow bug.

Reported by:	Maksymilian Arciemowicz
Security:	http://securityreason.com/achievement_securityalert/53
Submitted by:	Maxim Dounin &lt;mdounin@mdounin.ru&gt;
MFC after:	3 days
</content>
</entry>
<entry>
<title>Use calloc() instaed of zeroing memory ourselves.</title>
<updated>2008-04-13T08:05:08Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2008-04-13T08:05:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=92226c92f3ab73e2e3d3aec141486c3cafbbcfcd'/>
<id>urn:sha1:92226c92f3ab73e2e3d3aec141486c3cafbbcfcd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Include a couple of headers to ensure consistency between the prototype and</title>
<updated>2005-09-12T19:52:42Z</updated>
<author>
<name>Stefan Farfeleder</name>
<email>stefanf@FreeBSD.org</email>
</author>
<published>2005-09-12T19:52:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=613100918de03164200eb28f7db1a2b1d701a697'/>
<id>urn:sha1:613100918de03164200eb28f7db1a2b1d701a697</id>
<content type='text'>
the function definition.
</content>
</entry>
<entry>
<title>According to C99 decimal_point can't be empty</title>
<updated>2003-03-20T08:18:55Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-03-20T08:18:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=85bebbc156e23d6029e0824d782260830025a611'/>
<id>urn:sha1:85bebbc156e23d6029e0824d782260830025a611</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove unused variable: ntmp.</title>
<updated>2003-01-03T23:34:26Z</updated>
<author>
<name>Tim J. Robbins</name>
<email>tjr@FreeBSD.org</email>
</author>
<published>2003-01-03T23:34:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7599ad308f5d556498c04a5d08abdccb5ac8829b'/>
<id>urn:sha1:7599ad308f5d556498c04a5d08abdccb5ac8829b</id>
<content type='text'>
</content>
</entry>
</feed>
