|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
| #
d915a14e |
| 25-Nov-2017 |
Pedro F. Giffuni <[email protected]> |
libc: further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error p
libc: further adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0 |
|
| #
32223c1b |
| 30-Apr-2016 |
Pedro F. Giffuni <[email protected]> |
libc: spelling fixes.
Mostly on comments.
|
|
Revision tags: release/10.3.0, release/10.2.0, release/10.1.0 |
|
| #
0c029579 |
| 12-Jul-2014 |
Pedro F. Giffuni <[email protected]> |
strfmon: reduce unnecessary snprintf.
No need for the snprintf/asprintf dance; use fixed width formats.
Obtained from: NetBSD (CVS rev. 1.8) MFC after: 1 week
|
|
Revision tags: release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0 |
|
| #
3c87aa1d |
| 20-Nov-2011 |
David Chisnall <[email protected]> |
Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit
Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 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)
show more ...
|
|
Revision tags: release/7.4.0, release/8.2.0, release/8.1.0, release/7.3.0 |
|
| #
3a921aa7 |
| 10-Feb-2010 |
Martin Cracauer <[email protected]> |
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 (th
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
show more ...
|
|
Revision tags: release/8.0.0, release/7.2.0, release/7.1.0, release/6.4.0 |
|
| #
eff93c80 |
| 24-Apr-2008 |
Ruslan Ermilov <[email protected]> |
Stricter check for integer overflow.
|
| #
5b30d6ca |
| 19-Apr-2008 |
Ruslan Ermilov <[email protected]> |
Don't forget to free() currency_symbol and asciivalue when multiple conversion specifiers for them are present.
Submitted by: Maxim Dounin <[email protected]> Obtained from: NetBSD (partially) MFC
Don't forget to free() currency_symbol and asciivalue when multiple conversion specifiers for them are present.
Submitted by: Maxim Dounin <[email protected]> Obtained from: NetBSD (partially) MFC after: 3 days
show more ...
|
| #
3890416f |
| 19-Apr-2008 |
Ruslan Ermilov <[email protected]> |
Better strfmon(3) conversion specifiers sanity checking.
There were no checks for left and right precisions at all, and a check for field width had integer overflow bug.
Reported by: Maksymilian Ar
Better strfmon(3) conversion specifiers sanity checking.
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 <[email protected]> MFC after: 3 days
show more ...
|
| #
92226c92 |
| 13-Apr-2008 |
Xin LI <[email protected]> |
Use calloc() instaed of zeroing memory ourselves.
|
|
Revision tags: release/7.0.0, release/6.3.0, release/6.2.0, release/5.5.0, release/6.1.0, release/6.0.0 |
|
| #
61310091 |
| 12-Sep-2005 |
Stefan Farfeleder <[email protected]> |
Include a couple of headers to ensure consistency between the prototype and the function definition.
|
|
Revision tags: release/5.4.0, release/4.11.0, release/5.3.0, release/4.10.0, release/5.2.1, release/5.2.0, release/4.9.0, release/5.1.0, release/4.8.0 |
|
| #
85bebbc1 |
| 20-Mar-2003 |
Andrey A. Chernov <[email protected]> |
According to C99 decimal_point can't be empty
|
|
Revision tags: release/5.0.0 |
|
| #
7599ad30 |
| 03-Jan-2003 |
Tim J. Robbins <[email protected]> |
Remove unused variable: ntmp.
|
| #
bd26dcd1 |
| 12-Oct-2002 |
Tim J. Robbins <[email protected]> |
Fix a typo causing incorrect formatting for negative values in some locales (at least the French ones), a memory leak upon successful termination, a pointer arithmetic error causing heap corruption,
Fix a typo causing incorrect formatting for negative values in some locales (at least the French ones), a memory leak upon successful termination, a pointer arithmetic error causing heap corruption, and an off-by-one bug causing incorrect amounts of padding at the right of the value.
show more ...
|
| #
2e9212d9 |
| 11-Oct-2002 |
Tim J. Robbins <[email protected]> |
Save errno around calls to free(); at least some code paths clobber it and we are not interested in any errors it may report.
|
| #
2621915f |
| 11-Oct-2002 |
Tim J. Robbins <[email protected]> |
Use the new struct lconv members to determine how to format international monetary values.
|
| #
40a48101 |
| 11-Oct-2002 |
Tim J. Robbins <[email protected]> |
Non-negative amounts should not have an extra space in front of them when the `(' flag is used.
|
| #
284d5622 |
| 11-Oct-2002 |
Tim J. Robbins <[email protected]> |
"Left precision" and "right precision" are not flags, but separate parts of the format string that appear after the field width.
|
| #
883738f2 |
| 20-Sep-2002 |
Mike Barcroft <[email protected]> |
Add restrict type-qualifier.
|
|
Revision tags: release/4.6.2 |
|
| #
a82bbc73 |
| 28-May-2002 |
Alfred Perlstein <[email protected]> |
Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
|
| #
333fc21e |
| 22-Mar-2002 |
David E. O'Brien <[email protected]> |
Fix the style of the SCM ID's. I believe have made all of libc .c's as consistent as possible.
|
| #
52d6b430 |
| 11-Dec-2001 |
Alexey Zelkin <[email protected]> |
Add my e-mail to copyrights
|
| #
a5aecc77 |
| 17-Sep-2001 |
Mike Barcroft <[email protected]> |
style(9)
Silence from: phantom
|
| #
f6a9e03f |
| 06-Sep-2001 |
Alexey Zelkin <[email protected]> |
correctly wrap macros with { }
|
| #
9d430a59 |
| 05-Sep-2001 |
Alexey Zelkin <[email protected]> |
Add strfmon(3) implementation. It still contains few XXX's because I lost my last version of this work due to HDD crash, but this version cleanly passed all POSIX and SuSv2 tests. I am working on tes
Add strfmon(3) implementation. It still contains few XXX's because I lost my last version of this work due to HDD crash, but this version cleanly passed all POSIX and SuSv2 tests. I am working on testing scripts which should test this implementation against all locales and surely more fixes will come soon.
Reviewed by: ache, silence at -audit & -developers
show more ...
|