summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale
Commit message (Collapse)AuthorAgeFilesLines
* Change dstp to be const and remove bogus cast.rdivacky2009-01-151-2/+3
| | | | | Submitted by: christoph.mallon at gmx.de Approved by: kib (mentor)
* Introduce a local variable and use it instead of passed in parameterrdivacky2009-01-153-4/+10
| | | | | | | | to get rid of restrict qualifier discarding. This lets libc compile cleanly in gnu99 mode. Suggested by: kib, christoph.mallon at gmx.de Approved by: kib (mentor)
* Don't allocate the constant array "props" on the stack in wctype.antoine2008-03-171-1/+1
| | | | | | | PR: 74743 Submitted by: knut st. osmundsen Approved by: rwatson (mentor) MFC after: 1 month
* Fix longstanding mb/wc functions segfault if error occurseache2008-01-231-29/+39
| | | | | inside _<encoding>_init(). Currently _EUC_init() only was affected.
* Better fix for longstanding segfault. Don't touch current locale at allache2008-01-231-17/+29
| | | | on unknown encoding. Previous fix resets it to POSIX.
* 1) Add (void) cast to _none_init() (while I am here)ache2008-01-231-2/+4
| | | | | 2) Fix longstanding segfault in mb/wc code when unknown encoding is specified in the locale file (mb/wc functions becomes NULL in that case).
* Introduce new encoding: "ASCII"ache2008-01-214-1/+191
| | | | | It differs from default C/POSIX "NONE" mainly by stricter 8bit check for mb*towc*/wc*tomb* family, returning EILSEQ
* Remove 3rd clause of licensephantom2007-12-121-4/+0
| | | | Per request of: glenn halperin at symbian.com
* - Include runetype.h for _RuneLocale_rafan2007-11-071-0/+2
|
* Back out 2nd part of wrong iswascii() change in prev. commit.ache2007-10-231-1/+1
|
* Add comment explaining __mb_sb_limit trick here.ache2007-10-151-0/+5
|
* The problem is: currently our single byte ctype(3) functions are brokenache2007-10-1312-21/+57
| | | | | | | | | | | | | | | | | | | | | | | | | for wide characters locales in the argument range >= 0x80 - they may return false positives. Example 1: for UTF-8 locale we currently have: iswspace(0xA0)==1 and isspace(0xA0)==1 (because iswspace() and isspace() are the same code) but must have iswspace(0xA0)==1 and isspace(0xA0)==0 (because there is no such character and all others in the range 0x80..0xff for the UTF-8 locale, it keeps ASCII only in the single byte range because our internal wchar_t representation for UTF-8 is UCS-4). Example 2: for all wide character locales isalpha(arg) when arg > 0xFF may return false positives (must be 0). (because iswalpha() and isalpha() are the same code) This change address this issue separating single byte and wide ctype and also fix iswascii() (currently iswascii() is broken for arguments > 0xFF). This change is 100% binary compatible with old binaries. Reviewied by: i18n@
* - Fix typogabor2007-05-041-2/+2
| | | | | Approved by: keramida (mentor) MFC after: 3 days
* Use C comments since we now preprocess these files with CPP.deischen2007-04-291-2/+4
|
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-0949-196/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Add missing comma.ru2006-10-131-1/+1
|
* Fix a bug where, for 6-byte sequences, the top 6 bits get compared totrhodes2006-03-301-1/+1
| | | | | 111111 rather than the top 7 bits being compared against 1111110 causing illegal bytes fe and ff being treated the same as legal bytes fc and fd.
* Add __collate_load_error and __collate_range_cmp to the list ofdeischen2006-03-301-0/+2
| | | | | | | | | | | | | FBSDprivate locale symbols. These functions are needed by libcompat. Add _cleanup to the list of stdio FBSDprivate symbols. Some third party applications use this. This will be removed and replaced by fcloseall() once libc version is bumped. Add _res to the list of resolv symbols. Found by: portbuilder runs (thanks Kris!)
* Add each directory's symbol map file to SYM_MAPS.deischen2006-03-131-0/+2
|
* Add symbol maps and initial symbol version definitions to libc.deischen2006-03-131-0/+100
| | | | Reviewed by: davidxu
* -mdoc sweep.ru2005-11-1714-14/+14
|
* Include a couple of headers to ensure consistency between the prototype andstefanf2005-09-123-0/+3
| | | | the function definition.
* Add HISTORY section.tjr2005-07-211-1/+6
|
* Add cross-reference to nextwctype(3).tjr2005-07-211-1/+2
|
* Add COMPATIBILITY and HISTORY sections. Fix typo.tjr2005-07-211-2/+13
|
* Remove confusing "single C char locales" phrase; arguments to thesetjr2005-07-1712-106/+44
| | | | | functions and must now be either an unsigned char or EOF, regardless of locale.
* Remove confusing "single C char locales" phrase; arguments to tolower()tjr2005-07-172-18/+6
| | | | | and toupper() must now be either an unsigned char or EOF, regardless of locale.
* Make <runefile.h> internal to libc.ru2005-05-162-1/+63
| | | | Suggested by: phantom
* Make the format of LC_COLLATE files architecture independent.ru2005-02-272-3/+14
|
* . Static'ize functions exported via function reference variables only.phantom2005-02-2711-117/+112
| | | | | | | | | | | | . Replace inclusion of sys/param.h to sys/cdefs.h and sys/types.h where appropriate. . move _*_init() prototypes to mblocal.h, and remove these prototypes from .c files . use _none_init() in __setrunelocale() instead of duplicating code . move __mb* variables from table.c to none.c allowing us to not to export _none_*() externs, and appropriately remove them from mblocal.h Ok'ed by: tjr
* ANSI'fy prototypesphantom2005-02-273-11/+5
|
* Make the format of LC_CTYPE files architecture independent byru2005-02-261-66/+156
| | | | | | | | | | | | | introducing the disk formats for _RuneLocale and friends. The disk formats do not have (useless) pointers and have 32-bit quantities instead of rune_t and long. (htonl(3) only works with 32-bit quantities, so there's no loss). Bootstrap mklocale(1) when necessary. (Bootstrapping from 4.x would be trivial (verified), but we no longer provide pre-5.3 source upgrades and this is the first commit to actually break it.)
* Fix comparisons that test if an unsigned value is < 0.stefanf2005-02-122-4/+4
| | | | Reviewed by: tjr
* Sort sections.ru2005-01-203-18/+18
|
* Markup style.ru2005-01-152-6/+2
|
* Scheduled mdoc(7) sweep.ru2005-01-111-1/+1
|
* Implement rpmatch(), a semi-standard interface (as found on AIX, Tru64,tjr2005-01-093-2/+121
| | | | | | GNU) for determining whether a string is an affirmative or negative response to a question according to the current locale. This is done by matching the response against nl_langinfo(3) items YESEXPR and NOEXPR.
* Remove setrunelocale()ache2004-10-181-23/+0
|
* Remove the obsolete <rune.h> interface.tjr2004-10-1711-846/+11
|
* Remove support for the obsolete UTF2 encoding.tjr2004-10-179-317/+3
|
* Prefer C99's __func__ over GCC's __FUNCTION__.stefanf2004-09-221-3/+3
|
* Re-word warning about the UTF2 encoding, taking care to use the wordtjr2004-08-211-3/+3
| | | | "obsolete" instead of "deprecated".
* Bump document date for previous.tjr2004-08-212-2/+2
|
* Re-word warning about the rune interface, taking care to use the wordtjr2004-08-212-12/+10
| | | | "obsolete" instead of "deprecated".
* Change "deprecated" in link-time warnings about various rune functionstjr2004-08-214-8/+8
| | | | to "obsolete".
* Re-word compatibility section, taking care to use the word "obsolete" totjr2004-08-2114-54/+64
| | | | | describe the 4.4BSD extension of accepting characters (runes) outside of the range of unsigned char.
* /me kicks cvs updatetrhodes2004-08-171-7/+1
| | | | | | | Revert previous commit, tjr already fixed it and I was too stupid to notice this fact. Approved by: re (to avoid failing cvs ci)
* Fix incorrect code in an example. The previous example would producetrhodes2004-08-171-2/+8
| | | | | | | | | | 19 column positions wide in the first line and 20 in the rest of the lines. This fixes the example to provide the correct output. PR: 53454 Noticed by: Kuang-che Wu <kcwu@kcwu.homeip.net> Submitted by: Marc Silver <marcs@draenor.org> Approved by: re (scottl)
* Fix example.tjr2004-08-121-4/+5
|
* Implement wcwidth() as an inline function.tjr2004-08-121-11/+2
|
OpenPOWER on IntegriCloud