yamt
9de0432262
remove #if define(lint).
...
we don't need it anymore since lint has been fixed.
2001-10-28 12:08:43 +00:00
jmc
5e189cb036
Convert to using standard headers/types for values within here.
...
Wrap the RuneState struct so it only gets visibity to the library compiles
(userland tools such as mklocale don't need to set/get states)
2001-10-20 06:01:13 +00:00
jmc
1919be32df
Change the magic -3 for the invalid rune to
...
#define _DEFAULT_INVALID_RUNE -3
and use it accordingly. Also provides a representation programs such as
mklocale can reference when filling out a new locale from a definition.
2001-10-20 05:59:35 +00:00
yamt
7368604c8e
- mblen and mbtowc shouldn't return -2.
...
- non-restartable functions shouldn't be restartable.
2001-10-09 10:21:48 +00:00
erh
b0ed71fe70
Include string.h to get memset prototype.
2001-10-02 01:20:03 +00:00
yamt
1628acde4a
add a header used by wcstoul/wcstol.
...
i forgot it at last commit.
2001-09-28 11:25:37 +00:00
yamt
6eb1cbbb9b
fix type in comment
2001-09-28 09:29:17 +00:00
yamt
a9c5a86aa9
add wcstod/wcstol/wcstoul.
2001-09-27 16:30:35 +00:00
wiz
58329ea2bf
Remove some boring whitespace and fix a section header.
2001-09-16 02:25:37 +00:00
yamt
1aa18a915f
update comments
2001-06-22 00:01:47 +00:00
yamt
b12809f15e
linted.
2001-06-21 19:37:06 +00:00
yamt
d14a2355eb
sync with latest Citrus XPG4DL.
...
- mbsrtowcs/wcsrtombs
- when conversion stopped with terminating-null, set *src null-pointer.
- if dst isn't null, ignore len.
- fix how to treat ___mbrtowc
- mbrtowc
- fix problem that terminating null charactor wasn't stored.
- fix problem with stateful encoding.
(when src points to escape sequence + '\0', mbstate wasn't initialized)
- fix return value when restarted.
XXX euctw and big5 are not tested.
- iso2022-jp
- fix mbrtowc with imcomplete sequence.
- etc
- make sure mbstate is initialized. (___rune_initstate is called)
primarily to fix mbsinit for iso2022.
- sync citrus Id
2001-06-21 02:20:24 +00:00
uwe
06f9773006
Unbalanced quote in RETURN VALUES section header.
2001-06-06 22:47:34 +00:00
kleink
6d12e22df8
C89/AMD1: mbsrtowcs() and wcsrtombs() are not to return the terminating
...
null; also correct the corresponding conversion loop exit in mbsrtowcs().
From YAMAMOTO Takashi in PR lib/13016.
2001-05-26 13:18:42 +00:00
kristerw
13aabc248d
Make sure that we don't free() through an uninitialized pointer in error
...
handling code.
2001-05-26 00:35:20 +00:00
kleink
08c6392504
Need <limits.h> in _CTYPE_PRIVATE environments.
2001-04-17 20:12:31 +00:00
kleink
232fcc90e3
isoC -> isoC90.
2001-04-14 17:13:23 +00:00
tshiozak
9d67eaba15
Remove UTF-2. UTF-2 is superceded by UTF-8.
2001-04-01 17:45:39 +00:00
tshiozak
0c95c16c79
Remove UTF-2. UTF-2 is superceded by UTF-8.
...
see also:
http://mail-index.netbsd.org/tech-userlevel/2001/03/30/0000.html
http://mail-index.netbsd.org/tech-userlevel/2001/03/30/0001.html
http://mail-index.netbsd.org/tech-userlevel/2001/03/30/0002.html
2001-04-01 17:43:07 +00:00
tshiozak
636743250b
fix a bit bug. this bug normally causes no problem.
2001-03-26 20:06:46 +00:00
tshiozak
6c89983bd3
support nl_langinfo(CODESET).
2001-03-26 19:55:42 +00:00
jdolecek
26426e6fac
Note this conforms to ANSI C as well. Fixes standards/12157.
2001-02-20 11:36:01 +00:00
wiz
3a1b1621fc
Add casts to please lint. Reviewed by christos.
2001-02-09 10:55:48 +00:00
christos
4495412c88
de-lint.
2001-02-06 18:48:41 +00:00
tsutsui
500e09d2ad
Include string.h for mem*() prototypes.
2001-01-27 05:40:18 +00:00
tsutsui
dfd4bf0465
Include string.h for memset() prototype.
2001-01-26 13:42:11 +00:00
jdolecek
90bf9d58e5
make tags[] and flags[] const
2001-01-25 09:46:44 +00:00
itojun
2dcdf0fcb8
(finally!) enable multibyte LC_CTYPE locale support.
...
the functionality will be available for dynamic-linked binary only, due to
limitation with dlopen() from within statically-linked binaries.
(statically-linked binary can still enjoy singlebyte LC_CTYPE locale support)
from citrus project.
2001-01-25 09:21:57 +00:00
itojun
1aba0c48bc
split setlocale.c for smaller footprint (do not pull things in too much).
...
have magic number check in locale modules.
rename: lib/libc/locale/setlocale_sb.c -> setlocale1.c
NOTE: this commit does not enable multibyte locale support, yet.
2001-01-25 01:25:05 +00:00
itojun
4d99bddbd0
declare (internal) encoding state for 'NONE' encoding, for future
...
thread safety. no externally visible difference.
2001-01-22 04:42:40 +00:00
itojun
f972083e05
move __mb_cur_max to dedicated *.o, so that we do not pull in
...
locale stuff just by calling printf().
2001-01-22 00:29:46 +00:00
itojun
ce8aa899c9
wording in comment
2001-01-21 07:13:23 +00:00
itojun
cdc6b98589
have _CTYPE_SW1 to all isprint() chars. important for future curses multibyte
...
support.
2001-01-21 04:34:47 +00:00
itojun
527f9efec1
comment; we do not set digit value (lowermost 8bit) at the moment
...
when we read in old locale declaration file.
2001-01-21 04:34:11 +00:00
itojun
09c87b61bb
check _B (old isprint && !isgraph) when we generate _CTYPE_R (isprint).
...
otherwise, iso-8859-x locale will become incorrect about isprint(0xa0).
XXX too much workaround...
2001-01-21 03:56:27 +00:00
itojun
98641ce4a4
workaround for PR 11993. when we read in old locale file,
...
- don't really trust _B in the file.
- generate derived bits at runtime - like _CTYPE_R.
TODO: update ctype.h so that it look at RunLocale table.
2001-01-21 03:49:02 +00:00
itojun
6bb7c9da0c
avoid exposure of libc internal symbols into public header (wctype.h).
2001-01-20 17:40:09 +00:00
lukem
2e9d6ac8c1
sprinkle in _DIAGASSERT() as appropriate
2001-01-03 15:23:26 +00:00
kleink
20a43da197
C99: add new parameters int_p_cs_precedes, int_n_cs_precedes,
...
int_p_sep_by_space, int_n_sep_by_space, int_p_sign_posn and
int_n_sign_posn to monetary locale information.
2001-01-02 10:53:24 +00:00
itojun
b648355aae
put _RuneLocale pointer into mbstate_t for better thread safeness
2000-12-30 05:05:57 +00:00
itojun
f864e401f9
fix shlib function name for a.out case
2000-12-30 05:05:25 +00:00
itojun
4ab94d919b
sync citrus Id part with citrus repository.
2000-12-28 05:27:35 +00:00
itojun
2ea22179ea
switch locale module API, from s{get,put}rune to wcrtomb/mbrtowc.
...
handle intermediate mbstate_t more correctly.
no externally-visible changes here.
2000-12-28 05:22:27 +00:00
itojun
762873adfc
re-enable citrus (rune)locale support.
...
XXX please clean and recompile libc if you get this revision. UPDATE=yes
may leave obsolete *.o.
2000-12-27 00:57:03 +00:00
itojun
b0a406db08
arg mistake to memset
2000-12-26 06:12:09 +00:00
itojun
8e1213a45e
convert old style LC_CTYPE ctype table into runelocale table
2000-12-26 00:34:49 +00:00
itojun
6ddc3c8680
read in tolower/ctype table. do not mixup toupper/tolower.
2000-12-26 00:30:51 +00:00
itojun
bb629fd1e5
byte default, use (non-citrus) singlebyte locale. if we compile
...
ld.elf_so with citrus locale, it bombs.
XXX this is shortterm workaround. if you are willing to test citrus locale,
use RUNE=yes in libc/locale/Makefile.inc.
2000-12-25 23:30:58 +00:00
itojun
67819708f5
indentation
2000-12-25 09:25:15 +00:00
itojun
eeed3beffb
return _INVALID_RUNE if wchar_t > 0xff, on sgetrune.
2000-12-25 01:39:48 +00:00