Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Properly advance "x/y/z" form slash-pointers in some rare cases | ache | 2003-12-24 | 1 | -4/+4 |
| | | | | PR: 60539 | ||||
* | First byte of GBK-like sequences is 0x81, not 0x80 | ache | 2003-12-19 | 1 | -1/+1 |
| | |||||
* | Set __mbrtowc and __wcrtomb correctly when changing to the C/POSIX locale. | tjr | 2003-12-08 | 1 | -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. | tjr | 2003-12-07 | 7 | -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. | tjr | 2003-12-07 | 3 | -176/+232 |
| | |||||
* | Update cross references after utf2/euc move. | tjr | 2003-11-15 | 10 | -18/+18 |
| | |||||
* | Remove section 4 versions of these manual pages, they have been | tjr | 2003-11-15 | 2 | -232/+0 |
| | | | | moved into section 5. | ||||
* | Install the section 5 versions of EUC and UTF2 manual pages instead of | tjr | 2003-11-15 | 1 | -2/+1 |
| | | | | the section 4 versions. | ||||
* | Update the EUC and UTF2 manual pages for their new home in section 5. | tjr | 2003-11-15 | 2 | -2/+2 |
| | | | | These have been repo-copied from euc.4 and utf2.4. | ||||
* | Fix a typo that caused mbrtowc() to always return 0. | tjr | 2003-11-11 | 1 | -1/+1 |
| | |||||
* | Add one more cross-reference to gb2312(5). | tjr | 2003-11-08 | 1 | -0/+1 |
| | |||||
* | Add cross-references to new gb2312(5) manual page. | tjr | 2003-11-08 | 2 | -0/+2 |
| | |||||
* | Add a fairly simple manual page for the new GB2312 encoding. | tjr | 2003-11-08 | 2 | -1/+58 |
| | |||||
* | Remove unused #includes. | tjr | 2003-11-08 | 5 | -11/+0 |
| | |||||
* | Use __inline instead of inline. | tjr | 2003-11-08 | 1 | -1/+1 |
| | |||||
* | Refer to wide characters instead of runes. Remove redundant example locale. | tjr | 2003-11-08 | 2 | -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. | tjr | 2003-11-08 | 2 | -4/+6 |
| | |||||
* | Add gb2312 encoding. | davidxu | 2003-11-05 | 3 | -1/+120 |
| | |||||
* | Implement mbrtowc() and wcrtomb() directly (sync with big5.c). | tjr | 2003-11-05 | 1 | -53/+50 |
| | |||||
* | Convert the Big5, EUC, MSKanji and UTF-8 encoding methods to implement | tjr | 2003-11-02 | 4 | -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(). | tjr | 2003-11-01 | 1 | -4/+0 |
| | | | | Remove unnecessary inclusion of <ctype.h>. | ||||
* | Allow mbrtowc() and wcrtomb() to be implemented directly, instead of | tjr | 2003-11-01 | 7 | -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. | tjr | 2003-10-31 | 4 | -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 around | tjr | 2003-10-31 | 1 | -36/+8 |
| | | | | fgetwc(), ungetwc() and fputwc(). | ||||
* | Remove incomplete support for running FreeBSD userland on old NetBSD kernels | tjr | 2003-10-29 | 1 | -5/+1 |
| | | | | lacking the issetugid() and utrace() syscalls. | ||||
* | mdoc(7): Use the new feature of the .In macro. | ru | 2003-09-08 | 3 | -3/+3 |
| | |||||
* | Remove an unused and incorrect prototype for _none_init(). | tjr | 2003-09-05 | 1 | -1/+0 |
| | |||||
* | Fix the case of the encoding name in the ENCODING line. Names are | tjr | 2003-08-10 | 1 | -1/+1 |
| | | | | case-sensitive, and MSKANJI does not work. | ||||
* | Cross-reference gbk(5). | tjr | 2003-08-10 | 1 | -0/+1 |
| | |||||
* | Cross-reference gbk(5) now that it exists. Fix a copy & paste error: | tjr | 2003-08-10 | 1 | -1/+2 |
| | | | | one occurrence of GB 18030 should have been 11383. | ||||
* | Add a fairly minimal manual page for the GBK encoding. | tjr | 2003-08-10 | 2 | -1/+63 |
| | |||||
* | Add a cross reference to Unicode 3.0. | tjr | 2003-08-10 | 1 | -1/+6 |
| | |||||
* | Add cross references to the new character encoding manual pages, | tjr | 2003-08-10 | 1 | -1/+5 |
| | | | | and to mbsinit(3) while I'm at it. | ||||
* | Add manual pages for the BIG5, GB18030 and MSKanji encodings. These may | tjr | 2003-08-10 | 4 | -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() | tjr | 2003-08-07 | 1 | -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() | tjr | 2003-08-07 | 2 | -115/+24 |
| | | | | as a wrapper around wcsrtombs(). | ||||
* | Implement mbtowc() in terms of mbrtowc(), and wctomb() in terms of wcrtomb(). | tjr | 2003-08-07 | 2 | -53/+42 |
| | |||||
* | Implement btowc() in terms of mbrtowc() instead of sgetrune(), and | tjr | 2003-08-07 | 2 | -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 detection | ache | 2003-08-03 | 1 | -0/+1 |
| | |||||
* | Remove commented out and never used code | ache | 2003-08-03 | 1 | -34/+1 |
| | |||||
* | Remove __collate_range_cmp() stabilization, it conflicts with ranges | ache | 2003-08-03 | 1 | -10/+2 |
| | |||||
* | Add support for gb18030 encoding | ache | 2003-07-29 | 3 | -1/+170 |
| | | | | | PR: 51729 Submitted by: Kang Liu <liukang@bjpu.edu.cn> | ||||
* | Add const to __setrunelocale prototype | ache | 2003-07-06 | 1 | -4/+4 |
| | |||||
* | Reorganize wrapper around setrunelocale() to mark it as deprecated | ache | 2003-07-06 | 3 | -25/+41 |
| | | | | in FreeBSD 6 | ||||
* | . style(9) | phantom | 2003-06-26 | 7 | -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 into | phantom | 2003-06-25 | 3 | -37/+37 |
| | | | | internal helper function. | ||||
* | Move _PathLocale declaration to more logical place (setlocale.c) | phantom | 2003-06-25 | 2 | -1/+5 |
| | |||||
* | Catch up with _PATH_LOCALE move from rune.h to paths.h | phantom | 2003-06-25 | 1 | -1/+1 |
| | |||||
* | Mark the following interfaces as OBSOLETE_IN_6: | tjr | 2003-06-13 | 4 | -4/+16 |
| | | | | | | | fgetrune(), fputrune(), fungetrune(), mbrune(), mbrrune(), mbmb(), setinvalidrune(), UTF2 encoding method. These have been marked as being deprecated in their manual pages since 5.0, and their use causes a linker warning. | ||||
* | Fixes to locale code to properly use indirect pointers in order to prevent | jkh | 2003-06-13 | 5 | -10/+10 |
| | | | | | | | 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 |