aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/locale/lnumeric.c
Commit message (Collapse)AuthorAgeFilesLines
* . style(9)Alexey Zelkin2003-06-261-1/+2
| | | | | | | | . fix/add comments (to cover changes done thru last 20 months) . extend monetary testcase to cover int_* values Notes: svn path=/head/; revision=116875
* Fixes to locale code to properly use indirect pointers in order to preventJordan K. Hubbard2003-06-131-1/+1
| | | | | | | | | | memory leaks (fixes bugs earlier purported to be fixed). Submitted by: Ed Moy <emoy@apple.com> Obtained from: Apple Computer, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=116274
* decimal_point can't be "" according to C99, so set it to standard "."Andrey A. Chernov2003-03-201-1/+6
| | | | | | | in that case. Notes: svn path=/head/; revision=112425
* Rewrite locale loading procedures, so any load failure will not affectAndrey A. Chernov2002-08-081-3/+4
| | | | | | | | | | | currently cached data. It allows a number of nice things, like: removing fallback code from single locale loading, remove memory leak when LC_CTYPE data loaded again and again, efficient cache use, not only for setlocale(locale1); setlocale(locale1), but for setlocale(locale1); setlocale("C"); setlocale(locale1) too (i.e. data file loaded only once). Notes: svn path=/head/; revision=101498
* Style fixes in preparation of code rewrittingAndrey A. Chernov2002-08-071-5/+5
| | | | Notes: svn path=/head/; revision=101470
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-2/+3
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* * Add my e-mail to copyrightsAlexey Zelkin2001-12-111-9/+9
| | | | | | | * style(9)'ify Notes: svn path=/head/; revision=87658
* catch up to __part_load_locale() interface changeAlexey Zelkin2001-02-131-1/+2
| | | | Notes: svn path=/head/; revision=72443
* Make comparsions more clear (per style(9))Alexey Zelkin2001-02-121-1/+1
| | | | Notes: svn path=/head/; revision=72408
* Don't try to convert grouping strings in case if C or POSIX localeAlexey Zelkin2001-02-111-1/+1
| | | | | | | | | was explicitly specified. Submitted by: ache Notes: svn path=/head/; revision=72359
* . Fix semantics of grouping (LC_MONETARY::mon_grouping,Alexey Zelkin2001-02-101-2/+6
| | | | | | | | | LC_NUMERIC::grouping) values. . Always set __XXX_changed flags then loading numeric & monetary locale categories to allow localeconv() to use C locale also. Notes: svn path=/head/; revision=72321
* According to Garrett, POSIX widely use -1 to indicate CHAR_MAX, so back outAndrey A. Chernov2001-02-101-3/+1
| | | | | | | | all my "-1" -> "something" fixes and replace -1 with CHAR_MAX directly in strtol() in cnv() Notes: svn path=/head/; revision=72283
* Use __XSTRING(CHAR_MAX) instead of "127" and strtol() base 0 to parse it (0x7f)Andrey A. Chernov2001-02-101-1/+3
| | | | Notes: svn path=/head/; revision=72273
* Correct myself a bit: situation is broken not for _all_ numeric LC_MONETARY,Andrey A. Chernov2001-02-101-2/+1
| | | | | | | | | | | | | | | LC_NUMERIC fields, but only for *grouping fields - other fields are converted to a chars in localeconv(), so final change is: "-1" -> "127" 127 here is because CHAR_MAX supposed, which is _positive_ (SUSv2 requirement), not negative as 255. It is still a bit of hack. To find real CHAR_MAX will be better to sprintf() it once somewhere in static buffer. *grouping parsing still broken and missing and needs to be implemented. Notes: svn path=/head/; revision=72272
* NOTE: according to SUSV2 and other implementations, numeric elements inAndrey A. Chernov2001-02-101-3/+6
| | | | | | | | | | | | | | LC_MONETARY, LC_NUMERIC are byte-arrays, not ASCII strings! Fix "C" locale, change "-1" to {CHAR_MAX, '\0'} according to standards. This is only partial fix - locale loading procedure remains broken as before and load too big values for all locales. All numeric strings there should be converted with something like atoi() and placed into bytes. Maybe I do it later, if someone will not fix it faster. Notes: svn path=/head/; revision=72271
* Make FreeBSD locale support complete: add support for rest locale categoriesAlexey Zelkin2001-02-081-0/+78
LC_MONETARY, LC_NUMERIC and LC_MESSAGES. Remove stub functions since they don't need anymore. Reviewed by: silence on -i18n Notes: svn path=/head/; revision=72165