History log of /netbsd-src/lib/libc/locale/localeconv.c (Results 1 – 22 of 22)
Revision Date Author Comments
# bdfde3da 13-Sep-2013 joerg <joerg@NetBSD.org>

Redo the locale cache to be constant. It now contains the localeconv()
data and which LC_MONETARY and LC_NUMERIC values it is derived from.
In newlocale(3) and setlocale(3), check for the existing en

Redo the locale cache to be constant. It now contains the localeconv()
data and which LC_MONETARY and LC_NUMERIC values it is derived from.
In newlocale(3) and setlocale(3), check for the existing entries and on
miss, create a new entry. This is currently not using a lock for the
list as the worst case is a small memory leak.

show more ...


# e0ac190e 17-May-2013 joerg <joerg@NetBSD.org>

Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale a

Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale and the C locale.
Drop function call layer for _current_locale() and directly return the
locale reference, not a pointer to it. Use protected access for global
variables, so that libc references can avoid the GOT overhead.

show more ...


# 6ffcdd8d 17-Apr-2013 joerg <joerg@NetBSD.org>

Add localeconv_l.


# 3d365e74 24-Jun-2012 christos <christos@NetBSD.org>

fix old style definitions; XXX: gcc should have picked them up but it did not.


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

make _locale_impl_t.cache as pointer to maintain easily binary compatibility in future.
no ABI change was made.


# 5ad520e6 27-Mar-2010 tnozaki <tnozaki@NetBSD.org>

_locale_cache_t: change ldata and items to pointer for future binary compatibility.


# 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 ...


# ec36328c 26-May-2007 tnozaki <tnozaki@NetBSD.org>

s/approprate/appropriate/


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

WARNS=4


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

KNF


# 99410184 26-Jul-2003 salo <salo@NetBSD.org>

netbsd.org->NetBSD.org


# 20a43da1 02-Jan-2001 kleink <kleink@NetBSD.org>

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.


# 2c89343c 13-Nov-1998 christos <christos@NetBSD.org>

delint


# 450aa90e 13-Jul-1997 christos <christos@NetBSD.org>

Fix RCSID's


# 4fd0a6d5 29-Apr-1997 kleink <kleink@NetBSD.org>

RCSid police.


# 528957a0 28-Apr-1995 jtc <jtc@NetBSD.org>

Winning Strategies has placed this code into the Public Domain


# 9be3c7f2 29-Sep-1994 jtc <jtc@NetBSD.org>

Minor tweaks to prepare for checkin of real i18n code.


# 3518e0a8 25-May-1994 jtc <jtc@NetBSD.org>

New localeconv() implementation that constructs it's return value from
the current numeric and current monetary locale data.


# 9c20f740 26-Aug-1993 jtc <jtc@NetBSD.org>

Declare rcsid strings so they are stored in text segment.


# e9d867ef 01-Aug-1993 mycroft <mycroft@NetBSD.org>

Add RCS identifiers.


# 61f28255 21-Mar-1993 cgd <cgd@NetBSD.org>

initial import of 386bsd-0.1 sources