summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale
Commit message (Collapse)AuthorAgeFilesLines
...
* Rewrite locale loading procedures, so any load failure will not affectache2002-08-0811-192/+259
| | | | | | | | 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).
* Reset __mb_cur_max to 1 when "C" or "POSIX" locales loaded after multibyte oneache2002-08-071-0/+1
|
* Fix wrong address when EucInfo > "variable" sizeache2002-08-071-1/+1
|
* Style fixes in preparation for rewrittingache2002-08-071-15/+15
|
* Style fixes in preparation of code rewrittingache2002-08-074-34/+43
|
* Build iswctype.c and manual pages for the functions it defines.tjr2002-08-061-3/+12
|
* Add missing prototypes for extension functions to the SYNOPSIS.tjr2002-08-051-0/+14
|
* Use In macro instead of Fd. Add crossref to wctype(3). Refer to 1003.1-2001tjr2002-08-051-4/+31
| | | | in STANDARDS section. Document functions which are extensions to the standard.
* Use the In macro instead of Fd. Add crossref to wctrans(3). Refer totjr2002-08-051-3/+4
| | | | 1003.1-2001 in STANDARDS section.
* Implement the missing <wctype.h> functions: isw*() (iswalnum() etc.),tjr2002-08-051-0/+213
| | | | | | | | towlower() and towupper() required by ISO C90 Amd. 1. iswascii(), iswhexnumber(), iswideogram(), iswnumber(), iswphonogram(), iswrune() and iswspecial() have also been implemented for consistency with the BSD extensions in <ctype.h>.
* Reject encoding > ENCODING_LEN at early stage instead of truncating it.ache2002-08-051-19/+35
| | | | | Use ptr == NULL instead of !ptr in few places. Move saverr declaration to global section.
* Manual pages for wide character classification (isw*) and case conversiontjr2002-08-052-0/+192
| | | | | | (tow*) functions from NetBSD, unmodified except for the addition of $FreeBSD$. Obtained from: NetBSD
* Change wctype_t to an unsigned type to avoid warnings.tjr2002-08-041-1/+1
|
* Add the ISO C90 Amd. 1 wctrans(3) and towctrans(3) functions.tjr2002-08-043-2/+196
|
* Add btowc(3) to SEE ALSO section.tjr2002-08-041-0/+1
|
* Use errno to indicate failure reason.ache2002-08-041-12/+18
| | | | | Remove incomplete checks for 'name' and 'PatchLocale', they must be already checked at this point.
* Fixed some style bugs (unsorting of MLINKS, and more than 1 assignment tobde2002-08-041-3/+3
| | | | MAN per section).
* Rewrite loadlocale() to eliminate LOAD_CATEGORY macro to save space.ache2002-08-041-28/+27
|
* Add ERRORS section according to POSIX (no errors)ache2002-08-031-0/+2
|
* Catch empty encoding name tooache2002-08-031-1/+1
|
* Fix return codes to match what setrunelocale() returnsache2002-08-031-5/+2
|
* Preserve errno in fallback codeache2002-08-031-0/+3
|
* Add ISO C90 Amd. 1 btowc(3) and wctob(3) functions.tjr2002-08-034-2/+167
|
* Correct use of Nm macro in NAME section and a broken cross reference.tjr2002-08-031-2/+3
|
* Return errno provided by fopen, not always ENOENT.ache2002-08-031-10/+10
| | | | | Return EFTYPE instead of EINVAL for wrong locale file format. Whitespaces.
* Check encoding for ".", ".." and / insideache2002-08-031-1/+5
|
* Return EINVAL for NULL or too long encoding, not EFAULTache2002-08-031-1/+1
|
* Return ENAMETOOLONG for long PATH_LOCALE, not EFAULTache2002-08-031-1/+1
|
* 1) Use errno to indicate faulure reason.ache2002-08-031-44/+89
| | | | | | | | | | 2) Move incomplete check for / in locale name from env section to loadlocale(), add check for "." and ".." too. It allows to check any argument, not env only. 3) Redesing LOAD_CATEGORY macro to eliminate code duplication. 4) Try harder in fallback code: if old locale can't be restored, load "C" locale 5) White space formatting, long lines, etc.
* Add ISO C90 Amd. 1 wctype(3) and iswctype(3) functions.tjr2002-08-033-2/+179
|
* Sligtly modify previous out-of-bounds fix: just break instead ofache2002-08-021-1/+1
| | | | | return(NULL) for upward compatibility with more LC_* categories may be implemented in future.
* Prevent out of bounds writting for too many slashes case.ache2002-08-021-14/+10
| | | | | | Replace strnpy + ='\0' with strlcpy MFC after: 1 day
* Remove the hard-coded limit of 3 bytes for EUC encodings.asmodai2002-04-141-1/+3
| | | | | | | | | | Satoshi NIIMI-san kindly explained that EUC does not limit the byte length to any arbitrary number. We now set the limit to the maximum octet length of the codeset and it is locale-specific. Submitted by: Yong-Jhen Hong <winard@ms11.url.com.tw>
* Install digittoint.3 (forgotten in rev 1.21)des2002-04-131-1/+1
| | | | | PR: docs/26451 Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
* This was recently MFC'd, so it will appear in 4.6.dd2002-04-131-1/+1
| | | | PR: 37018
* Fix EUC encoding conversion for codeset 3 and 4 to comply to the specification.asmodai2002-04-071-0/+6
| | | | | PR: 28552 Submitted by: NIIMI Satoshi <sa2c@and.or.jp>
* Do not use __progname directly (except in [gs]etprogname(3)).markm2002-03-291-2/+3
| | | | | | Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland.
* Fix the style of the SCM ID's.obrien2002-03-2227-49/+68
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove __P() usage.obrien2002-03-219-27/+27
|
* mdoc(7) police: tidy up.ru2002-03-181-8/+8
|
* bde got caught by mdoc(7) police. :-)ru2002-03-152-2/+2
|
* mdoc(7) police: don't you notice the warnings?ru2002-03-151-1/+0
|
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm
* Do not try to convert to char already converted C monetary locale members.ache2002-01-282-28/+40
| | | | Do this conversion on locale load stage instead.
* get __time_load_locale() prototype from include file, rather than declarephantom2002-01-241-3/+2
| | | | own
* Restore C99 standard conformance information, isblank() _is_ in finalache2002-01-221-0/+5
| | | | | | standard document Pointed by: "Jacques A. Vidrine" <n@nectar.cc>
* Replaced bogus cross references by the usual one for the ctype familybde2002-01-112-32/+2
| | | | (ctype(3)).
* Removed assertion that isblank() conforms to C90 too. This assertionbde2002-01-111-5/+0
| | | | | | is correct but less than useful. There is some uncertainty about whether isblank() is in C99, but it is certainly not in C90. It just conforms to C89 because it is a conforming extension.
* Fixed unsorting of almost all lists in previous commit.bde2002-01-111-7/+4
| | | | Removed assertion that isblank() is in C99 here too.
* Fixed unsorting of MLINKS in previous commit.bde2002-01-111-3/+3
| | | | Fixed unsorting of SRCS in rev.1.18.
OpenPOWER on IntegriCloud