summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale
Commit message (Collapse)AuthorAgeFilesLines
* First appeared in 5.0, not in 4.4ache2001-09-171-1/+1
|
* mdoc(7) police:ru2001-08-071-3/+4
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* Remove whitespace at EOL.dd2001-07-1510-34/+34
|
* mdoc(7) police: fixed bugs in rev. 1.19, split section headers names.ru2001-07-041-5/+5
|
* Return "" if reallocf() failsache2001-06-251-1/+2
|
* Describe success return valueache2001-06-251-0/+6
|
* Add transition period hack allowing old locale names return proper codeset tooache2001-06-251-4/+31
|
* Handle "ASCII" and "US-ASCII" aliasesache2001-06-101-1/+2
|
* add nl_langinfo(3)phantom2001-05-031-2/+2
|
* Eliminate BUGS section. No one of listed bugs is applicable to FreeBSD-currentphantom2001-05-031-25/+0
| | | | anymore.
* add manpage for nl_langinfo(3)phantom2001-05-031-0/+90
| | | | Reviewed by: ru
* Include <unistd.h> so that read(2) and write(2) don't cause warnings.deischen2001-04-101-1/+2
|
* mdoc(7) police: LIBRARY should be before SYNOPSIS.ru2001-03-291-2/+2
|
* MAN[1-9] -> MAN.ru2001-03-271-2/+2
|
* Implement D_MD_ORDER (local extension) to get month/day order from localeache2001-03-191-0/+3
|
* Use our standard .c rcsid format.obrien2001-03-051-1/+2
|
* Fix copyright breakage in rev 1.2.obrien2001-03-051-0/+7
| | | | We *cannot* remove clause #4 from the Univ of California's license.
* Change mon_decimal_point from "." to "" (N/A>) as it is specified by POSIX forache2001-03-031-1/+1
| | | | POSIX locale.
* Actually implement T_FMT_AMPMache2001-03-021-1/+1
|
* Removed duplicate $FreeBSD$.ru2001-03-021-2/+0
|
* Fix setlocale() to conform to the ISO C and POSIX standards.ru2001-03-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The below text is quoted from the latest POSIX draft: : The values of locale categories shall be determined by a precedence : order; the first condition met below determines the value: : : 1. If the LC_ALL environment variable is defined and is not null, : the value of LC_ALL shall be used. : 2. If the LC_* environment variable (LC_COLLATE, LC_CTYPE, LC_MESSAGES, : LC_MONETARY, LC_NUMERIC, LC_TIME) is defined and is not null, the : value of the environment variable shall be used to initialize the : category that corresponds to the environment variable. : 3. If the LANG environment variable is defined and is not null, the : value of the LANG environment variable shall be used. : 4. If the LANG environment variable is not set or is set to the empty : string, the implementation-defined default locale shall be used. The conditions 1 and 2 were interchanged, i.e., LC_* were looked first, then LC_ALL, then LANG (note that LC_ALL and LANG were essentially the same, providing the default, with LC_ALL taking precedence over LANG). Now, LC_ALL and LANG serve the different purposes. LC_ALL overrides any LC_*, and LANG provides the default fallback. Testcase: /usr/bin/env LC_ALL=C LC_TIME=de_DE.ISO_8859-1 /bin/date Should return date in the "C" locale format. Inspired by: date(1) reference page in the Draft
* s/fstat/_fstat/deischen2001-03-011-1/+1
| | | | Approved by: phantom
* .St -ansiC -> .St -isoCru2001-02-2617-17/+17
|
* Fix visibility of empty variable -- it should be static.phantom2001-02-241-1/+1
| | | | | Submitted by: bde and Hartmut Brandt <brandt@fokus.gmd.de> (via PR) PR: bin/25308
* cleanup commentariesphantom2001-02-191-10/+14
|
* Deal properly with "0"ache2001-02-191-1/+5
|
* CRNCYSTR: determine '.' tooache2001-02-171-9/+15
|
* Implement CRNCYSTRache2001-02-171-3/+20
|
* Return {YES,NO}STR from localeache2001-02-131-2/+2
| | | | Approved by: phantom
* catch up to __part_load_locale() interface changephantom2001-02-133-18/+13
|
* add additional function parameter: bufsize_min. it's possiblephantom2001-02-132-4/+7
| | | | | | to check two sizes per one function invocation now. Suggested by: ache
* Make comparsions more clear (per style(9))phantom2001-02-123-4/+4
|
* Assume that "" passed as parameter also means "no grouping"phantom2001-02-121-3/+4
| | | | Make comparsions more clear (per style(9))
* o Fix build of libc broken in revision 1.2. offsetof() requires therwatson2001-02-121-0/+2
| | | | | | inclusion of stddef.h. Reviewed by: peter
* Don't use hardcoded struct size, use offsetof() instead (make size calculationsphantom2001-02-111-5/+7
| | | | dynamic)
* Don't try to convert grouping strings in case if C or POSIX localephantom2001-02-112-2/+2
| | | | | | was explicitly specified. Submitted by: ache
* make it possible to specify grouping number from range 0..CHAR_MAX,phantom2001-02-101-3/+9
| | | | not only one-digit number
* Use "namespace.h" and "un-namespace.h"phantom2001-02-101-0/+2
| | | | Requested by: deischen
* . Fix semantics of grouping (LC_MONETARY::mon_grouping,phantom2001-02-105-15/+84
| | | | | | LC_NUMERIC::grouping) values. . Always set __XXX_changed flags then loading numeric & monetary locale categories to allow localeconv() to use C locale also.
* As temporary workaround for missing *grouping fields parser always return "noache2001-02-101-2/+10
| | | | | grouping" (CHAR_MAX, '\0'). Fixme: grouping parser needs to be implemented.
* According to Garrett, POSIX widely use -1 to indicate CHAR_MAX, so back outache2001-02-103-7/+7
| | | | | all my "-1" -> "something" fixes and replace -1 with CHAR_MAX directly in strtol() in cnv()
* Use __XSTRING(CHAR_MAX) instead of "127" and strtol() base 0 to parse it (0x7f)ache2001-02-103-3/+7
|
* Correct myself a bit: situation is broken not for _all_ numeric LC_MONETARY,ache2001-02-102-4/+2
| | | | | | | | | | | | 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.
* NOTE: according to SUSV2 and other implementations, numeric elements inache2001-02-102-4/+8
| | | | | | | | | | | 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.
* Implement CODESETache2001-02-091-3/+12
|
* Back out attempt to implement CRNCYSTR - require additional prefixes accordingache2001-02-091-1/+4
| | | | to SUSV2. Add comment explaining it instead.
* Explicitly mark deprecated entries.ache2001-02-091-12/+9
| | | | | | | Return currency_symbol for CRNCYSTR Return "%r" for T_FMT_AMPM Remove obsoleted comment about c_fmt Return "" for {YES,NO}STR
* add lmonetary.?, lnumeric.?, ldpart.?, lmessages.?, nl_langinfo.cphantom2001-02-081-1/+2
| | | | remove lconv.c
* Add SUSv2 compatible nl_langinfo() function. It still need some work, butphantom2001-02-081-0/+130
| | | | this is already usable one.
* Make localeconv() actual function. Now it will use LC_MONETARY/LC_NUMERICphantom2001-02-082-79/+65
| | | | information to fill return structure. Remove unused anymore stub.
OpenPOWER on IntegriCloud