ache
d0d398da1c
LC_ALL not always take priority over other LC_*
...
Obtained from: NetBSD
PR: 62047
2004-01-31 19:15:32 +00:00
ache
ab3e3b27cb
Add reference to environ(7)
2004-01-29 09:27:24 +00:00
nectar
c281d0e2ea
Remove unused variables and function declarations. Add missing headers.
2004-01-06 18:26:15 +00:00
ache
b89dd89c31
Properly advance "x/y/z" form slash-pointers in some rare cases
...
PR: 60539
2003-12-24 10:16:46 +00:00
ache
750b0b565d
First byte of GBK-like sequences is 0x81, not 0x80
2003-12-19 12:54:42 +00:00
tjr
f9c332bd6a
Set __mbrtowc and __wcrtomb correctly when changing to the C/POSIX locale.
...
Save __mbrtowc and __wcrtomb and restore them when changing back to
the cached locale.
Reported by: perky
2003-12-08 23:52:22 +00:00
tjr
11f17fd074
Split multibyte(3) into separate manual pages for each function.
...
Instead of just deleting it, turn the original page into a general
overview of the multibyte character conversion functions, somewhat
similar to stdio(3).
2003-12-07 06:33:52 +00:00
tjr
412df50614
Split the documentation for localeconv() off into a separate manual page.
2003-12-07 06:00:00 +00:00
tjr
37d23e2aba
Update cross references after utf2/euc move.
2003-11-15 02:26:04 +00:00
tjr
dd1aaef04b
Remove section 4 versions of these manual pages, they have been
...
moved into section 5.
2003-11-15 02:15:25 +00:00
tjr
a49a4faf80
Install the section 5 versions of EUC and UTF2 manual pages instead of
...
the section 4 versions.
2003-11-15 02:13:09 +00:00
tjr
21ec09f9ec
Update the EUC and UTF2 manual pages for their new home in section 5.
...
These have been repo-copied from euc.4 and utf2.4.
2003-11-15 01:54:46 +00:00
tjr
042225384f
Fix a typo that caused mbrtowc() to always return 0.
2003-11-11 07:25:05 +00:00
tjr
0ea91c92a7
Add one more cross-reference to gb2312(5).
2003-11-08 03:23:11 +00:00
tjr
43f8154f97
Add cross-references to new gb2312(5) manual page.
2003-11-08 03:07:56 +00:00
tjr
50e07efd60
Add a fairly simple manual page for the new GB2312 encoding.
2003-11-08 03:02:45 +00:00
tjr
866579d246
Remove unused #includes.
2003-11-08 02:58:37 +00:00
tjr
c48a892fd1
Use __inline instead of inline.
2003-11-08 02:56:03 +00:00
tjr
7f360419c4
Refer to wide characters instead of runes. Remove redundant example locale.
...
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.
2003-11-08 02:52:31 +00:00
tjr
3433ed9c17
Refer to wide characters instead of runes.
2003-11-08 02:46:02 +00:00
davidxu
a6e1effefa
Add gb2312 encoding.
2003-11-05 22:52:51 +00:00
tjr
bd6d8c9eef
Implement mbrtowc() and wcrtomb() directly (sync with big5.c).
2003-11-05 07:56:45 +00:00
tjr
1c3a3f7e26
Convert the Big5, EUC, MSKanji and UTF-8 encoding methods to implement
...
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.
2003-11-02 10:09:33 +00:00
tjr
cdb4de5776
Remove TODO comment about creating a macro version of towctrans().
...
Remove unnecessary inclusion of <ctype.h>.
2003-11-01 08:20:58 +00:00
tjr
3c1f1a199d
Allow mbrtowc() and wcrtomb() to be implemented directly, instead of
...
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.
2003-11-01 05:13:13 +00:00
tjr
44278bfe73
Don't bother passing a freshly-zeroed mbstate to mbsrtowcs() etc.
...
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.
2003-10-31 13:29:00 +00:00
tjr
1ace50578b
Implement fgetrune(), fungetrune() and fputrune() as wrappers around
...
fgetwc(), ungetwc() and fputwc().
2003-10-31 10:55:19 +00:00
tjr
8366c4708a
Remove incomplete support for running FreeBSD userland on old NetBSD kernels
...
lacking the issetugid() and utrace() syscalls.
2003-10-29 10:45:01 +00:00
ru
1c23ef339b
mdoc(7): Use the new feature of the .In macro.
2003-09-08 19:57:22 +00:00
tjr
b9a0be968f
Remove an unused and incorrect prototype for _none_init().
2003-09-05 09:01:31 +00:00
tjr
a356560e21
Fix the case of the encoding name in the ENCODING line. Names are
...
case-sensitive, and MSKANJI does not work.
2003-08-10 11:41:38 +00:00
tjr
79a1201577
Cross-reference gbk(5).
2003-08-10 11:38:28 +00:00
tjr
8e1b8c0cf9
Cross-reference gbk(5) now that it exists. Fix a copy & paste error:
...
one occurrence of GB 18030 should have been 11383.
2003-08-10 11:36:42 +00:00
tjr
ff610fe32a
Add a fairly minimal manual page for the GBK encoding.
2003-08-10 11:34:35 +00:00
tjr
b3b78c5227
Add a cross reference to Unicode 3.0.
2003-08-10 11:26:18 +00:00
tjr
843375b3a6
Add cross references to the new character encoding manual pages,
...
and to mbsinit(3) while I'm at it.
2003-08-10 09:25:52 +00:00
tjr
a29811f4a0
Add manual pages for the BIG5, GB18030 and MSKanji encodings. These may
...
need to be fleshed out a little, especially big5(5).
2003-08-10 09:23:51 +00:00
tjr
cbe12b7936
Implement mblen(s, n) as mbtowc(NULL, s, n) to avoid calling sgetrune()
...
and to simplify things. This is only valid until we start supporting
state-dependent encodings.
2003-08-07 09:34:51 +00:00
tjr
84d24ef340
Implement mbstowcs() as a wrapper around mbsrtowcs(), and wcstombs()
...
as a wrapper around wcsrtombs().
2003-08-07 08:04:01 +00:00
tjr
b88da9d9aa
Implement mbtowc() in terms of mbrtowc(), and wctomb() in terms of wcrtomb().
2003-08-07 07:59:36 +00:00
tjr
298b52ca87
Implement btowc() in terms of mbrtowc() instead of sgetrune(), and
...
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.
2003-08-07 07:45:35 +00:00
ache
0d040622bd
Restore including of "collate.h", for its own prototype (mis)match detection
2003-08-03 19:28:23 +00:00
ache
aed962b0e9
Remove commented out and never used code
2003-08-03 05:20:31 +00:00
ache
1dac9aa79d
Remove __collate_range_cmp() stabilization, it conflicts with ranges
2003-08-03 04:40:40 +00:00
ache
2ecc37e253
Add support for gb18030 encoding
...
PR: 51729
Submitted by: Kang Liu <liukang@bjpu.edu.cn>
2003-07-29 07:52:44 +00:00
ache
96bd0cba77
Add const to __setrunelocale prototype
2003-07-06 04:01:09 +00:00
ache
92006f3cfc
Reorganize wrapper around setrunelocale() to mark it as deprecated
...
in FreeBSD 6
2003-07-06 02:03:37 +00:00
phantom
cd4974c734
. style(9)
...
. fix/add comments (to cover changes done thru last 20 months)
. extend monetary testcase to cover int_* values
2003-06-26 10:46:16 +00:00
phantom
551d2ed557
Reduce code duplication by separating _PathLocle detection code into
...
internal helper function.
2003-06-25 22:42:33 +00:00
phantom
a30cd00d3a
Move _PathLocale declaration to more logical place (setlocale.c)
2003-06-25 22:34:13 +00:00