David Chisnall
3c87aa1d3d
Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a
...
load of _l suffixed versions of various standard library functions that use
the global locale, making them take an explicit locale parameter. Also
adds support for per-thread locales. This work was funded by the FreeBSD
Foundation.
Please test any code you have that uses the C standard locale functions!
Reviewed by: das (gdtoa changes)
Approved by: dim (mentor)
2011-11-20 14:45:42 +00:00
Edwin Groothuis
28c42042d8
Modified locale(1) to be able to show the altmon_X fields and the [cxX]_fmt's.
...
Also modify the "-k list" option to display only fields with a certain prefix.
MFC after: 1 week
2009-10-05 07:13:15 +00:00
Alexey Zelkin
683fe11379
. 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
Andrey A. Chernov
0c7fbc6c40
Remove transition period hack
2003-06-10 01:26:04 +00:00
David E. O'Brien
333fc21e3c
Fix the style of the SCM ID's.
...
I believe have made all of libc .c's as consistent as possible.
2002-03-22 21:53:29 +00:00
Alexey Zelkin
74f2b97544
* Add my e-mail to copyrights
...
* style(9)'ify
2001-12-11 15:55:42 +00:00
Andrey A. Chernov
d118fd8a39
Return "" if reallocf() fails
2001-06-25 20:56:59 +00:00
Andrey A. Chernov
4e86aa7f9d
Add transition period hack allowing old locale names return proper codeset too
2001-06-25 09:03:10 +00:00
Andrey A. Chernov
75d03a7f04
Handle "ASCII" and "US-ASCII" aliases
2001-06-10 23:22:31 +00:00
Andrey A. Chernov
71a71d575f
Implement D_MD_ORDER (local extension) to get month/day order from locale
2001-03-19 11:55:12 +00:00
Andrey A. Chernov
c0bbece16d
Actually implement T_FMT_AMPM
2001-03-02 22:12:19 +00:00
Alexey Zelkin
e1467aa917
cleanup commentaries
2001-02-19 19:09:00 +00:00
Andrey A. Chernov
8a8e51d8e8
CRNCYSTR: determine '.' too
2001-02-17 11:15:30 +00:00
Andrey A. Chernov
59dde0d08d
Implement CRNCYSTR
2001-02-17 07:35:01 +00:00
Andrey A. Chernov
d6a3432e11
Return {YES,NO}STR from locale
...
Approved by: phantom
2001-02-13 23:32:48 +00:00
Andrey A. Chernov
d0e2083fdd
Implement CODESET
2001-02-09 22:43:39 +00:00
Andrey A. Chernov
634c946524
Back out attempt to implement CRNCYSTR - require additional prefixes according
...
to SUSV2. Add comment explaining it instead.
2001-02-09 18:39:17 +00:00
Andrey A. Chernov
218bcbcb4d
Explicitly mark deprecated entries.
...
Return currency_symbol for CRNCYSTR
Return "%r" for T_FMT_AMPM
Remove obsoleted comment about c_fmt
Return "" for {YES,NO}STR
2001-02-09 18:16:12 +00:00
Alexey Zelkin
60e1d74ff8
Add SUSv2 compatible nl_langinfo() function. It still need some work, but
...
this is already usable one.
2001-02-08 17:12:03 +00:00