History log of /netbsd-src/lib/libc/locale/rune.c (Results 1 – 25 of 46)
Revision Date Author Comments
# 388550b0 19-Apr-2022 rillig <rillig@NetBSD.org>

lib: remove CONSTCOND comment

Since 2021-01-31, lint doesn't need it anymore for the common pattern of
'do ... while (0)'.


# e8fa8f4d 13-Apr-2013 joerg <joerg@NetBSD.org>

Extend ctype classification table to 16bit. Based on patch by
Takehiko Nozaki, with changes to compile fail when using the old names
and to exploit __BUILD_LEGACY


# 6c95282a 08-Aug-2012 wiz <wiz@NetBSD.org>

Restore RCS Id lost in previous.


# 277ab1b5 08-Aug-2012 tnozaki <tnozaki@NetBSD.org>

fix PR lib/46781 statically compiled bash makes locale loading fail.
analyzed and patch provided by enami@ nonaka@ obache@ soda@, thanks.
patch modified by me.


# 0f5f511f 20-Jan-2012 joerg <joerg@NetBSD.org>

Remove code for CITRUS!=yes.


# 6c7179c5 25-Mar-2011 joerg <joerg@NetBSD.org>

Remove support for the old BSDCTYPE format.


# 96bcb898 30-Nov-2010 tnozaki <tnozaki@NetBSD.org>

variable must to be nul terminated before "CODESET=foo".
ISO2022 module doesn't understand this and may fail setlocale(3).


# 197b6993 19-Jun-2010 tnozaki <tnozaki@NetBSD.org>

null terminate


# 3cc41207 19-Jun-2010 tnozaki <tnozaki@NetBSD.org>

1. refactoring new locale-db(RuneCT10) loading method with mmap(2).
2. remove unused field from _RuneLocale.
3. localeio(CITRUS=no) can read new locale-db(RuneCT10) now.


# 2a7af30c 13-Jun-2010 tnozaki <tnozaki@NetBSD.org>

1. split runetype_local.h -> runetype_file.h
and remove renameing _Rune* -> _NBRune* namespace protection.

FreeBSD traditionaly exposes struct _Rune* in runetype.h
which included by ctype.h

1. split runetype_local.h -> runetype_file.h
and remove renameing _Rune* -> _NBRune* namespace protection.

FreeBSD traditionaly exposes struct _Rune* in runetype.h
which included by ctype.h. it may cause conflicting type error
in our cross build process, former we use renaming namespace
to avoid this problem, now i reworked more resonable way.

2. merge rune_local.h to runetype_local.h, and remove it.
3. split bsdctype.h -> bsdctype_{file,local}.h

show more ...


# fd847aaa 12-Jun-2010 tnozaki <tnozaki@NetBSD.org>

stop to renaming _CTYPE_* -> _RUNETYPE_*.


# 9a35d797 01-Jun-2010 tnozaki <tnozaki@NetBSD.org>

more split ctype.h -> sys/ctype_inline.h, sys/ctype_bits.h


# 9763c57c 22-May-2010 tnozaki <tnozaki@NetBSD.org>

rune.h is not public, so merge with rune_local.h


# 64a7d4fa 22-May-2010 tnozaki <tnozaki@NetBSD.org>

1. hide _CTYPE_PRIVATE section in ctype.h, move them to private header ctype_local.h.
2. do not use _CTYPE_NUM_CHARS macro to read data from LC_CTYPE(old BSDCTYPE style) database.
because 1<<CHAR_

1. hide _CTYPE_PRIVATE section in ctype.h, move them to private header ctype_local.h.
2. do not use _CTYPE_NUM_CHARS macro to read data from LC_CTYPE(old BSDCTYPE style) database.
because 1<<CHAR_BIT is MD, so i added MI macro _CTYPE_CACHE_SIZE(1<<8).
3. remove _NB_CACHED_RUNE macro, use _CTYPE_CACHE_SIZE instead.

show more ...


# 71d48e7c 12-Feb-2009 lukem <lukem@NetBSD.org>

sign-compare fixes


# 461a86f9 11-Jan-2009 christos <christos@NetBSD.org>

merge christos-time_t


# 52ed7b03 02-Jan-2009 tnozaki <tnozaki@NetBSD.org>

Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and

Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
new locale-db implementation using citrus_db backend,
see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
zh_CN.eucCN -> zh_CN.GB18030
and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.

show more ...


# 059d6005 29-Sep-2007 tnozaki <tnozaki@NetBSD.org>

1. add workaround for ctype.h is* funcs problem.
isspace((int)0xA0) should return false under LC_CTYPE=en_US.UTF-8,
see: http://www.freebsd.org/cgi/query-pr.cgi?pr=116363&cat=gnu
2. change __ru

1. add workaround for ctype.h is* funcs problem.
isspace((int)0xA0) should return false under LC_CTYPE=en_US.UTF-8,
see: http://www.freebsd.org/cgi/query-pr.cgi?pr=116363&cat=gnu
2. change __runtable_to_netbsd_ctype() as reentrant.

patch ok'ed by tshiozak-san, thanks!

show more ...


# 359eb8d7 19-Mar-2006 christos <christos@NetBSD.org>

Coverity CID 571: Remove dead code.


# 39ff6485 19-Mar-2006 christos <christos@NetBSD.org>

Coverity CID 778: Avoid NULL deref.


# 03256c6e 29-Nov-2005 christos <christos@NetBSD.org>

WARNS=4


# 95e4d0d7 09-May-2004 kleink <kleink@NetBSD.org>

Need namespace.h for internal names of strdup, strlcpy.


# 40069685 06-Jan-2004 agc <agc@NetBSD.org>

Make this compile, and, as a side-effect, LP64 clean.


# 12eeb195 06-Jan-2004 itojun <itojun@NetBSD.org>

kill strcpy


# 35f883b0 02-Jan-2004 itojun <itojun@NetBSD.org>

KNF


12