summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale
Commit message (Collapse)AuthorAgeFilesLines
* LC_ALL not always take priority over other LC_*ache2004-01-311-22/+35
| | | | | Obtained from: NetBSD PR: 62047
* Add reference to environ(7)ache2004-01-291-1/+2
|
* Remove unused variables and function declarations. Add missing headers.nectar2004-01-062-2/+3
|
* Properly advance "x/y/z" form slash-pointers in some rare casesache2003-12-241-4/+4
| | | | PR: 60539
* First byte of GBK-like sequences is 0x81, not 0x80ache2003-12-191-1/+1
|
* Set __mbrtowc and __wcrtomb correctly when changing to the C/POSIX locale.tjr2003-12-081-0/+14
| | | | | | | Save __mbrtowc and __wcrtomb and restore them when changing back to the cached locale. Reported by: perky
* Split multibyte(3) into separate manual pages for each function.tjr2003-12-077-145/+543
| | | | | | Instead of just deleting it, turn the original page into a general overview of the multibyte character conversion functions, somewhat similar to stdio(3).
* Split the documentation for localeconv() off into a separate manual page.tjr2003-12-073-176/+232
|
* Update cross references after utf2/euc move.tjr2003-11-1510-18/+18
|
* Remove section 4 versions of these manual pages, they have beentjr2003-11-152-232/+0
| | | | moved into section 5.
* Install the section 5 versions of EUC and UTF2 manual pages instead oftjr2003-11-151-2/+1
| | | | the section 4 versions.
* Update the EUC and UTF2 manual pages for their new home in section 5.tjr2003-11-152-2/+2
| | | | These have been repo-copied from euc.4 and utf2.4.
* Fix a typo that caused mbrtowc() to always return 0.tjr2003-11-111-1/+1
|
* Add one more cross-reference to gb2312(5).tjr2003-11-081-0/+1
|
* Add cross-references to new gb2312(5) manual page.tjr2003-11-082-0/+2
|
* Add a fairly simple manual page for the new GB2312 encoding.tjr2003-11-082-1/+58
|
* Remove unused #includes.tjr2003-11-085-11/+0
|
* Use __inline instead of inline.tjr2003-11-081-1/+1
|
* Refer to wide characters instead of runes. Remove redundant example locale.tjr2003-11-082-246/+36
| | | | | | Catch up with renaming of "Japanese" to "ja_JP.eucJP". Comment out the statement that EUC is provided for compatibility with UNIX-based systems; this is not a very good opening paragraph.
* Refer to wide characters instead of runes.tjr2003-11-082-4/+6
|
* Add gb2312 encoding.davidxu2003-11-053-1/+120
|
* Implement mbrtowc() and wcrtomb() directly (sync with big5.c).tjr2003-11-051-53/+50
|
* Convert the Big5, EUC, MSKanji and UTF-8 encoding methods to implementtjr2003-11-024-254/+233
| | | | | | mbrtowc() and wcrtomb() directly. GB18030, GBK and UTF2 are left unconverted; GB18030 will be done eventually, but GBK and UTF2 may just be removed, as they are subsets of GB18030 and UTF-8 respectively.
* Remove TODO comment about creating a macro version of towctrans().tjr2003-11-011-4/+0
| | | | Remove unnecessary inclusion of <ctype.h>.
* Allow mbrtowc() and wcrtomb() to be implemented directly, instead oftjr2003-11-017-50/+204
| | | | | | | | | | | | | | | | | as wrappers around the deprecated 4.4BSD rune functions. This paves the way for state-dependent encodings, which the rune API does not support. - Add __emulated_sgetrune() and __emulated_sputrune(), which are implementations of sgetrune() and sputrune() in terms of mbrtowc() and wcrtomb(). - Rename the old rune-wrapper mbrtowc() and wcrtomb() functions to __emulated_mbrtowc() and __emulated_wcrtomb(). - Add __mbrtowc and __wcrtomb function pointers, which point to the current locale's conversion functions, or the __emulated versions. - Implement mbrtowc() and wcrtomb() as calls to these function pointers. - Make the "NONE" encoding implement mbrtowc() and wcrtomb() directly. All of this emulation mess will be removed, together with rune support, in FreeBSD 6.
* Don't bother passing a freshly-zeroed mbstate to mbsrtowcs() etc.tjr2003-10-314-75/+25
| | | | | | | when the current implementation won't use it, anyway. Just pass NULL. This will need to be changed when state-dependent encodings are supported, but there's no need to take the performance hit in the meantime.
* Implement fgetrune(), fungetrune() and fputrune() as wrappers aroundtjr2003-10-311-36/+8
| | | | fgetwc(), ungetwc() and fputwc().
* Remove incomplete support for running FreeBSD userland on old NetBSD kernelstjr2003-10-291-5/+1
| | | | lacking the issetugid() and utrace() syscalls.
* mdoc(7): Use the new feature of the .In macro.ru2003-09-083-3/+3
|
* Remove an unused and incorrect prototype for _none_init().tjr2003-09-051-1/+0
|
* Fix the case of the encoding name in the ENCODING line. Names aretjr2003-08-101-1/+1
| | | | case-sensitive, and MSKANJI does not work.
* Cross-reference gbk(5).tjr2003-08-101-0/+1
|
* Cross-reference gbk(5) now that it exists. Fix a copy & paste error:tjr2003-08-101-1/+2
| | | | one occurrence of GB 18030 should have been 11383.
* Add a fairly minimal manual page for the GBK encoding.tjr2003-08-102-1/+63
|
* Add a cross reference to Unicode 3.0.tjr2003-08-101-1/+6
|
* Add cross references to the new character encoding manual pages,tjr2003-08-101-1/+5
| | | | and to mbsinit(3) while I'm at it.
* Add manual pages for the BIG5, GB18030 and MSKanji encodings. These maytjr2003-08-104-1/+189
| | | | need to be fleshed out a little, especially big5(5).
* Implement mblen(s, n) as mbtowc(NULL, s, n) to avoid calling sgetrune()tjr2003-08-071-26/+9
| | | | | and to simplify things. This is only valid until we start supporting state-dependent encodings.
* Implement mbstowcs() as a wrapper around mbsrtowcs(), and wcstombs()tjr2003-08-072-115/+24
| | | | as a wrapper around wcsrtombs().
* Implement mbtowc() in terms of mbrtowc(), and wctomb() in terms of wcrtomb().tjr2003-08-072-53/+42
|
* Implement btowc() in terms of mbrtowc() instead of sgetrune(), andtjr2003-08-072-10/+27
| | | | | | | | | wctob() in terms of wcrtomb() instead of sputrune(). There should be no functional differences, but there may be a small performance hit because we make an extra function call. The aim here is to have as few functions as possible calling s{get,put}rune() to make it easier to remove them in the future.
* Restore including of "collate.h", for its own prototype (mis)match detectionache2003-08-031-0/+1
|
* Remove commented out and never used codeache2003-08-031-34/+1
|
* Remove __collate_range_cmp() stabilization, it conflicts with rangesache2003-08-031-10/+2
|
* Add support for gb18030 encodingache2003-07-293-1/+170
| | | | | PR: 51729 Submitted by: Kang Liu <liukang@bjpu.edu.cn>
* Add const to __setrunelocale prototypeache2003-07-061-4/+4
|
* Reorganize wrapper around setrunelocale() to mark it as deprecatedache2003-07-063-25/+41
| | | | in FreeBSD 6
* . style(9)phantom2003-06-267-19/+41
| | | | | . fix/add comments (to cover changes done thru last 20 months) . extend monetary testcase to cover int_* values
* Reduce code duplication by separating _PathLocle detection code intophantom2003-06-253-37/+37
| | | | internal helper function.
* Move _PathLocale declaration to more logical place (setlocale.c)phantom2003-06-252-1/+5
|
OpenPOWER on IntegriCloud