The NetBSD Project

CVS log for src/lib/libc/locale/Makefile.inc

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / locale

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.65.6.2: download - view: text, markup, annotated - select for diffs
Mon Oct 14 17:20:18 2024 UTC (8 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.65.6.1: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.6.1: +17 -1 lines
Pull up following revision(s) (requested by riastradh in ticket #976):

	lib/libc/locale/c32rtomb.3: revision 1.10
	lib/libc/locale/c32rtomb.3: revision 1.9
	lib/libc/locale/c32rtomb.3: revision 1.11
	tests/lib/libc/locale/t_mbrtoc32.c: revision 1.1
	distrib/sets/lists/base/shl.mi: revision 1.988
	lib/libc/include/namespace.h: revision 1.204
	lib/libc/include/namespace.h: revision 1.205
	lib/libc/locale/mbrtoc16.3: revision 1.1
	lib/libc/locale/mbrtoc16.c: revision 1.1
	lib/libc/locale/mbrtoc16.3: revision 1.2
	lib/libc/locale/mbrtoc16.c: revision 1.2
	lib/libc/locale/mbrtoc16.3: revision 1.3
	lib/libc/locale/mbrtoc16.c: revision 1.3
	lib/libc/locale/mbrtoc32.3: revision 1.1
	lib/libc/locale/mbrtoc32.c: revision 1.1
	tests/lib/libc/locale/t_c16rtomb.c: revision 1.1
	lib/libc/locale/mbrtoc32.c: revision 1.2
	lib/libc/locale/mbrtoc16.3: revision 1.4
	lib/libc/locale/mbrtoc16.c: revision 1.4
	lib/libc/locale/mbrtoc32.3: revision 1.2
	tests/lib/libc/locale/t_c16rtomb.c: revision 1.2
	lib/libc/locale/mbrtoc32.c: revision 1.3
	lib/libc/locale/mbrtoc16.3: revision 1.5
	lib/libc/locale/mbrtoc16.c: revision 1.5
	lib/libc/locale/mbrtoc32.3: revision 1.3
	tests/lib/libc/locale/t_c16rtomb.c: revision 1.3
	lib/libc/locale/mbrtoc32.c: revision 1.4
	lib/libc/locale/mbrtoc16.3: revision 1.6
	lib/libc/locale/mbrtoc16.c: revision 1.6
	lib/libc/locale/mbrtoc32.3: revision 1.4
	tests/lib/libc/locale/t_c16rtomb.c: revision 1.4
	lib/libc/locale/mbrtoc32.c: revision 1.5
	lib/libc/locale/mbrtoc16.3: revision 1.7
	lib/libc/locale/mbrtoc16.c: revision 1.7
	lib/libc/locale/mbrtoc32.3: revision 1.5
	tests/lib/libc/locale/t_c16rtomb.c: revision 1.5
	lib/libc/locale/mbrtoc32.c: revision 1.6
	lib/libc/locale/mbrtoc16.3: revision 1.8
	lib/libc/locale/mbrtoc32.3: revision 1.6
	tests/lib/libc/locale/t_c16rtomb.c: revision 1.6
	lib/libc/locale/mbrtoc32.c: revision 1.7
	lib/libc/locale/mbrtoc16.3: revision 1.9
	lib/libc/locale/mbrtoc32.3: revision 1.7
	lib/libc/locale/mbrtoc32.c: revision 1.8
	lib/libc/locale/mbrtoc32.3: revision 1.8
	lib/libc/locale/mbrtoc32.c: revision 1.9
	distrib/sets/lists/comp/mi: revision 1.2468
	lib/libc/locale/mbrtoc32.3: revision 1.9
	distrib/sets/lists/comp/mi: revision 1.2469
	lib/libc/locale/c32rtomb.h: revision 1.1
	lib/libc/locale/c32rtomb.h: revision 1.2
	include/Makefile: revision 1.147
	share/man/man3/uchar.3: revision 1.1
	share/man/man3/uchar.3: revision 1.2
	tests/lib/libc/locale/t_c32rtomb.c: revision 1.1
	distrib/sets/lists/comp/mi: revision 1.2470
	lib/libc/locale/c16rtomb.3: revision 1.1
	lib/libc/locale/c16rtomb.c: revision 1.1
	lib/libc/locale/c16rtomb.3: revision 1.2
	lib/libc/locale/c16rtomb.c: revision 1.2
	lib/libc/locale/c16rtomb.3: revision 1.3
	lib/libc/locale/c16rtomb.c: revision 1.3
	lib/libc/locale/c16rtomb.3: revision 1.4
	lib/libc/locale/c16rtomb.c: revision 1.4
	lib/libc/locale/c16rtomb.3: revision 1.5
	lib/libc/locale/c16rtomb.c: revision 1.5
	lib/libc/locale/c16rtomb.3: revision 1.6
	lib/libc/locale/c16rtomb.c: revision 1.6
	lib/libc/locale/c16rtomb.3: revision 1.7
	lib/libc/locale/c16rtomb.c: revision 1.7
	lib/libc/locale/c16rtomb.3: revision 1.8
	lib/libc/locale/c16rtomb.3: revision 1.9
	distrib/sets/lists/tests/mi: revision 1.1330
	distrib/sets/lists/tests/mi: revision 1.1331
	distrib/sets/lists/tests/mi: revision 1.1332
	tests/lib/libc/locale/t_uchar.c: revision 1.1
	tests/lib/libc/locale/t_uchar.c: revision 1.2
	tests/lib/libc/locale/t_uchar.c: revision 1.3
	tests/lib/libc/locale/t_mbrtoc16.c: revision 1.1
	tests/lib/libc/locale/t_mbrtoc16.c: revision 1.2
	tests/lib/libc/locale/t_mbrtoc16.c: revision 1.3
	include/uchar.h: revision 1.1
	include/uchar.h: revision 1.2
	include/uchar.h: revision 1.3
	include/uchar.h: revision 1.4
	include/uchar.h: revision 1.5
	tests/lib/libc/locale/t_c8rtomb.c: revision 1.1
	include/uchar.h: revision 1.6
	tests/lib/libc/locale/t_c8rtomb.c: revision 1.2
	tests/lib/libc/locale/t_c8rtomb.c: revision 1.3
	tests/lib/libc/locale/t_c8rtomb.c: revision 1.4
	share/man/man3/Makefile: revision 1.93
	tests/lib/libc/locale/t_c8rtomb.c: revision 1.5
	tests/lib/libc/locale/t_c8rtomb.c: revision 1.6
	tests/lib/libc/locale/t_c8rtomb.c: revision 1.7
	lib/libc/shlib_version: revision 1.297
	lib/libc/locale/c16rtomb.3: revision 1.10
	lib/libc/locale/c16rtomb.3: revision 1.11
	tests/lib/libc/locale/t_mbrtoc8.c: revision 1.1
	tests/lib/libc/locale/t_mbrtoc8.c: revision 1.2
	tests/lib/libc/locale/t_mbrtoc8.c: revision 1.3
	lib/libc/locale/mbrtoc16.3: revision 1.10
	tests/lib/libc/locale/Makefile: revision 1.15
	tests/lib/libc/locale/Makefile: revision 1.16
	tests/lib/libc/locale/Makefile: revision 1.17
	tests/lib/libc/locale/Makefile: revision 1.18
	distrib/sets/lists/debug/mi: revision 1.442
	distrib/sets/lists/debug/mi: revision 1.443
	distrib/sets/lists/debug/mi: revision 1.444
	lib/libc/locale/c8rtomb.3: revision 1.1
	lib/libc/locale/c8rtomb.c: revision 1.1
	lib/libc/locale/c8rtomb.3: revision 1.2
	lib/libc/locale/c8rtomb.c: revision 1.2
	lib/libc/locale/c8rtomb.3: revision 1.3
	lib/libc/locale/c8rtomb.c: revision 1.3
	lib/libc/locale/c8rtomb.3: revision 1.4
	lib/libc/locale/c8rtomb.c: revision 1.4
	lib/libc/locale/c8rtomb.3: revision 1.5
	lib/libc/locale/c8rtomb.c: revision 1.5
	lib/libc/locale/c8rtomb.3: revision 1.6
	lib/libc/locale/c8rtomb.c: revision 1.6
	lib/libc/locale/c8rtomb.3: revision 1.7
	lib/libc/locale/c8rtomb.3: revision 1.8
	lib/libc/locale/c8rtomb.3: revision 1.9
	lib/libc/locale/mbrtoc32.h: revision 1.1
	lib/libc/locale/mbrtoc32.h: revision 1.2
	lib/libc/locale/mbrtoc8.c: revision 1.1
	lib/libc/locale/mbrtoc8.3: revision 1.1
	lib/libc/locale/mbrtoc8.c: revision 1.2
	lib/libc/locale/mbrtoc8.3: revision 1.2
	lib/libc/locale/mbrtoc8.c: revision 1.3
	lib/libc/locale/mbrtoc8.3: revision 1.3
	lib/libc/locale/mbrtoc8.c: revision 1.4
	lib/libc/locale/mbrtoc8.3: revision 1.4
	lib/libc/locale/Makefile.inc: revision 1.66
	lib/libc/locale/mbrtoc8.c: revision 1.5
	lib/libc/locale/mbrtoc8.3: revision 1.5
	lib/libc/locale/Makefile.inc: revision 1.67
	lib/libc/locale/mbrtoc8.c: revision 1.6
	lib/libc/locale/mbrtoc8.3: revision 1.6
	lib/libc/locale/mbrtoc8.c: revision 1.7
	lib/libc/locale/mbrtoc8.3: revision 1.7
	lib/libc/locale/mbrtoc8.c: revision 1.8
	lib/libc/locale/c32rtomb.3: revision 1.1
	lib/libc/locale/c32rtomb.c: revision 1.1
	lib/libc/locale/c32rtomb.3: revision 1.2
	lib/libc/locale/c32rtomb.c: revision 1.2
	lib/libc/locale/c32rtomb.3: revision 1.3
	lib/libc/locale/c32rtomb.c: revision 1.3
	lib/libc/locale/c32rtomb.3: revision 1.4
	lib/libc/locale/c32rtomb.c: revision 1.4
	lib/libc/locale/c32rtomb.3: revision 1.5
	lib/libc/locale/c32rtomb.c: revision 1.5
	lib/libc/locale/c32rtomb.3: revision 1.6
	lib/libc/locale/c32rtomb.c: revision 1.6
	lib/libc/locale/c32rtomb.3: revision 1.7
	lib/libc/locale/c32rtomb.3: revision 1.8

	(all via patch)


tests/lib/libc/locale/Makefile: Sort.
No functional change intended.
Preparation for PR lib/52374.

uchar.h: New header file for C11 (and C++11) compliance.

Implementation of the new functions mbrtoc16, c16rtomb, mbrtoc32, and
c32rtomb to come later.  Updates for C23 to come later.
PR lib/52374: <uchar.h> missing

libc: New C11 functions mbrtoc16, mbrtoc32, c16rtomb, c32rtomb.

The mbrtoc16/32 functions read mulitbyte strings according to the
current locale into UTF-16/32 code unit sequences; the c16/32rtomb
functions write UTF-16/32 code unit sequences into multibyte strings
according to the current locale.  The `r' means restartable: they
work incrementally and pick up where they left off.

NOTE: This bumps the libc minor version, since it adds new symbols.

PR lib/52374: <uchar.h> missing
mbrtoc16(3), mbrtoc32(3): Fix \n in man page examples.
Need to write \en to pacify roff.
PR lib/52374: <uchar.h> missing

c16rtomb(3), c32rtomb(3): Fix more \n in man pages.
Also, tighten an assertion: we left room for a NUL byte at the end.
PR lib/52374: <uchar.h> missing

libc: Use the more idiomatic alignof from stdalign.h.
No functional change intended.
PR lib/52374: <uchar.h> missing

mbrtoc16(3): Simplify surrogate state test.

Turn the finer-grained test into an assertion.
No semantic change intended: we are supposed to control this state,
and we always arrange it this way.  (But in principle this could
change the behaviour of buggy programs that violate the mbstate_t
abstraction.)
PR lib/52374: <uchar.h> missing

libc: New functions c8rtomb(3) and mbrtoc8(3).

New in C23, for converting from UTF-8 to locale-dependent multibyte
sequences (c8rtomb) or vice versa (mbrtoc8), along with the new type
char8_t.

Conditional on either:
- _NETBSD_SOURCE
- _ISOC23_SOURCE
- __STDC_VERSION__ >= 202311L
(Riding the libc minor bump from this morning for the UTF-16/UTF-32
versions from C11.)

PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb
libc: c32rtomb and mbrtoc32 are used internally, so weak-alias them.
PR lib/52374: <uchar.h> missing
c8rtomb(3), mbrtoc8(3): Use namespace.h to get private aliases.

This way applications defining the symbols c32rtomb or mbrtoc32 won't
clobber our private definitions, which are slightly more constrained
about their use of mbstate_t than is obvious from the interface
contract.

PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb
mbrtoc16(3), mbrtoc32(3): brush up markup

Split long .Fn lines into Fo/Fa/Fc.  Dont indent the list of return
values.  Don't use artisanal -width.

Untabify code examples - indented literal displays don't have correct
tab stops consistent with tab stops in the fixed font code, so the
lines end up misaligned in the PostScript output.

c16rtomb(3), c32rtomb(3): brush up markup

mbrtoc16(3), mbrtoc32(3): Simplify return value language.
Also expand BMP only once.
PR lib/52374: <uchar.h> missing

mbrtoc16(3), mbrtoc32(3): No state overlap with mbrtoc8 or c8rtomb.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

mbrtoc32(3): Clarify control flow.
No need for another goto here; let's keep it clearly structured with
a single `out' label.
No functional change intended.
PR lib/52374: <uchar.h> missing

c8rtomb(3), mbrtoc8(3): brush up markup

mbrtoc8(3): Simplify return value language.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

c16rtomb(3), c32rtomb(3): Specify what happens if ps is null.
PR lib/52374: <uchar.h> missing

c8rtomb(3): Specify what happens when ps is null.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

c16rtomb(3), c32rtomb(3): No state overlap with mbrtoc8 or c8rtomb.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

mbrtoc16(3), mbrtoc32(3): Work on deturgidifying prose.
Still maybe not great but at least there's less jargon in most of the
text, without really losing any content.
PR lib/52374: <uchar.h> missing

mbrtoc8(3): Work on deturgidifying prose.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

mbrtoc16(3), mbrtoc32(3): Restore word accidentally removed.
PR lib/52374: <uchar.h> missing

mbrtoc8(3): Restore word accidentally removed.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

c8rtomb(3): Fix possible error descriptions.
The argument c8 can't be a surrogate code point itself (they're in
the range [0xd800,0xdfff], beyond 8-bit values), but the bits of a
surrogate code point could be forced into the UTF-8 format, which is
also invalid.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

c16rtomb(3), c32rtomb(3): Attempt a deturgidification pass.
Limit the jargon around surrogates.
PR lib/52374: <uchar.h> missing

c8rtomb(3): Clarify prose and fix example in caveat.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb
c16rtomb(3), c32rtomb(3), mbrtoc16(3), mbrtoc32(3): xref c8 versions.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

mbrtoc16(3): Clarify how many bytes are consumed in special cases.
Fix overlap in RETURN VALUES section.
PR lib/52374: <uchar.h> missing

mbrtoc8(3): Clarify how many bytes are consumed in special cases.
Fix overlap in RETURN VALUES section.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

pass lint, XXX see lint bug.

libc: Add _l variants of the cNrtomb and mbrtocN functions.
These accept an explicit locale parameter, rather than using the
current locale.
Visible under _NETBSD_SOURCE, not exposed otherwise.
NOTE: This adds libc symbols.  Riding the libc minor bump for the
non-_l variants of these from two days ago -- hope that's not pushing
it too far.
PR lib/58613: c*rtomb, mbrtoc* should have locale-parametric _l
variants

c8rtomb(3), c16rtomb(3): Add tests for incomplete NUL termination.
PR lib/58615: incomplete c8rtomb, c16rtomb handles NUL termination
wrong

c8rtomb(3), c16rtomb(3): Fix NUL handling.
PR lib/58615: incomplete c8rtomb, c16rtomb handles NUL termination
wrong

c8rtomb(3), c16rtomb(3), c32rtomb(3): Test stateful shift sequences.
PR lib/58612: c8rtomb/c16rtomb/c32rtomb yield suboptimal shift
sequences

c8rtomb(3): Fix digit error in shift sequence test.
PR lib/58612: c8rtomb/c16rtomb/c32rtomb yield suboptimal shift
sequences

c8rtomb(3): Nix __CTASSERT after case label.
I put this in to make it (machine-verifiably) clear that zeroing the
state is the same as returning to the initial conversion state, as
the standard requires, but this is causing build trouble (and will
likely cause more trouble if pulled up) because some definitions of
__CTASSERT make a declaration which is forbidden after a label, so
let's remove it.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

mbrtoc8(3): Fix pasto in comment at top.
No functional change intended.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

mbrtoc8: remove lint-specific workarounds
No binary change.

mbrtoc8: fix comments

mbrtoc16, mbrtoc32: fix comments, remove lint-specific workarounds
No binary change.
t_c8rtomb, t_c16rtomb: Simplify comment.
ESC $ B is technically rather the JIS X 0208-1983 shift sequence, but
since I don't see any way to provoke the JIS X 0208-1978 shift
sequence to come flying out of this conversion (ESC $ @), and I'm not
sure there's any difference in the interpretation, let's just say JIS
X 0208.
PR lib/58612: c8rtomb/c16rtomb/c32rtomb yield suboptimal shift
sequences

c32rtomb(3): Use conversion state to handle shift sequences.
For conversion of Unicode scalar values to coding systems requiring
shift sequences, such as ISO-2022-JP, _citrus_iconv_convert will
always produce:
1. a shift sequence from the initial state to some nondefault state,
   like from US-ASCII to JIS X 0208
2. the encoding of the desired characater
3. a shift sequence restoring the initial state
This is unnecessary if the output is already in the state needed to
encoded the desired character.  For example, this method produces
seven bytes to encode each YEN SIGN in ISO-2022-JP -- and fourteen,
to encode two consecutive ones -- even though the shift sequence is
only three bytes long and once shifted YEN SIGN takes only one byte.
Instead, convert the Unicode scalar value to a locale-dependent wide
character and encode that, by composing
- _citrus_iconv_convert
  => gives us a multibyte encoding of the character from the initial
     state (and restoring the initial state afterward)
- mbrtowc with initial conversion state
  => gives us the single wide character representation
     XXX If combining characters are possible here, this may fail.
- wcrtomb with caller's conversion tsate
  => gives us a state-dependent multibyte encoding of the character
XXX Is there a cheaper way to convert from Unicode scalar value to
locale-dependent wide character?  It is not obvious to me from the
largely undocumented Citrus machinery, but it would obviously be
better than this somewhat circuitous Rube Goldberg contraption of
chained multibyte APIs.
PR lib/58612: c8rtomb/c16rtomb/c32rtomb yield suboptimal shift
sequences

mbrtoc8(3), mbrtoc16(3): Test consuming shift sequences with state.
This has the side effect of testing mbrtoc32(3) because they are both
defined in terms of it.
PR lib/58618: mbrtocN(3) fails to keep shift state

c8rtomb(3), c16rtomb(3), c32rtomb(3): Suggest MB_LEN_MAX in example.
This way it avoids variable-length arrays, by always allocating the
maximum space that could be occupied by MB_CUR_MAX.

mbrtoc32(3): Use conversion state to handle shift sequences.
PR lib/58618: mbrtocN(3) fails to keep shift state

mbrtoc32(3): Fix name and type of mbrtowc_l return value.
This was from `int mbtowc_l(...)' in an earlier draft and I didn't
update it to size_t when I changed the draft to mbrtowc_l.  Caught by
lint.
`mb_len' avoids (harmless) clash with standard C function mblen(3).
PR lib/58618: mbrtocN(3) fails to keep shift state

c32rtomb(3): Fix type of wcrtomb_l return value.
This was from `int wctomb_l(...)' in an earlier draft and I didn't
update it to size_t when I changed the draft to wcrtomb_l.  Caught by
lint.
`wc_len' mirrors `mb_len' in the complementary code in mbrtoc32(3) to
avoid clash with standard C function mblen(3).
PR lib/58612: c8rtomb/c16rtomb/c32rtomb yield suboptimal shift
sequences

c8rtomb(3), c16rtomb(3), c32rtomb(3): Attempt to simplify language.

c8rtomb(3), c16rtomb(3), c32rtomb(3): Fix null string output case.
This ignores c8/c16/c32, produces no output anywhere, and just resets
ps to the initial conversion state.
Also just use 0 in the example, not '\0' or L'\0'.  This works for
C11, which prefers '\0' and L'\0', for and C23, which introduced the
new u8'\0', u'\0' (UTF-16), and U'\0' (UTF-32).
c16rtomb, c32rtomb, mbrtoc8: fix page numbers in comments
mbrtoc8(3), mbrtoc16(3), mbrtoc32(3): Say 0 for zero code unit.
Rather than deal with differences between C11 and C23 in notation,
'\0' vs L'\0' vs u8'\0' vs u'\0' vs U'\0'.
uchar.h: Include <sys/featuretest.h> before testing _*_SOURCE.
PR lib/58752: various header files test _*_SOURCE macros but don't
include sys/featuretest.h
PR lib/52374: <uchar.h> missing

uchar.h: Need <sys/cdefs.h> for __restrict.
PR lib/52374: <uchar.h> missing

uchar.h: Simplify __cpp_char8_t and __cplusplus conditionals.
No functional change intended.
PR lib/52374: <uchar.h> missing

tests/lib/libc/locale/t_uchar: Test for char8_t, mbrtoc8, c8rtomb.
PR lib/58752: various header files test _*_SOURCE macros but don't
include sys/featuretest.h
PR lib/52374: <uchar.h> missing

tests/t_uchar: fix copy-and-paste typo

Revision 1.64.28.1: download - view: text, markup, annotated - select for diffs
Fri Oct 11 17:35:46 2024 UTC (8 weeks, 3 days ago) by martin
Branches: netbsd-9
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +4 -1 lines
Pull up following revision(s) (requested by riastradh in ticket #1897):

	lib/libc/locale/mbsrtowcs.3: revision 1.14
	lib/libc/locale/mbsrtowcs.3: revision 1.15
	lib/libc/locale/wcsrtombs.3: revision 1.14
	lib/libc/locale/wcsrtombs.3: revision 1.15
	lib/libc/locale/wcsrtombs.3: revision 1.16
	distrib/sets/lists/comp/mi: revision 1.2473
	lib/libc/locale/Makefile.inc: revision 1.68
	lib/libc/locale/mbsrtowcs.3: revision 1.13

mbsnrtowcs(3), wcsnrtombs(3): Add man pages for these mouthfuls.

Based on patch drafted by abhinav@, with a little additional tidying
by me.

PR standards/52343: wcsnrtombs missing man-page

mbsnrtowcs(3), wcsnrtombs(3): brush ip markup

SYNOPSIS fixes, uppercase NUL and NULL

Revision 1.65.6.1: download - view: text, markup, annotated - select for diffs
Fri Oct 11 17:34:00 2024 UTC (8 weeks, 3 days ago) by martin
Branches: netbsd-10
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -1 lines
Pull up following revision(s) (requested by riastradh in ticket #947):

	lib/libc/locale/mbsrtowcs.3: revision 1.14
	lib/libc/locale/mbsrtowcs.3: revision 1.15
	lib/libc/locale/wcsrtombs.3: revision 1.14
	lib/libc/locale/wcsrtombs.3: revision 1.15
	lib/libc/locale/wcsrtombs.3: revision 1.16
	distrib/sets/lists/comp/mi: revision 1.2473
	lib/libc/locale/Makefile.inc: revision 1.68
	lib/libc/locale/mbsrtowcs.3: revision 1.13

mbsnrtowcs(3), wcsnrtombs(3): Add man pages for these mouthfuls.

Based on patch drafted by abhinav@, with a little additional tidying
by me.

PR standards/52343: wcsnrtombs missing man-page

mbsnrtowcs(3), wcsnrtombs(3): brush ip markup

SYNOPSIS fixes, uppercase NUL and NULL

Revision 1.68: download - view: text, markup, annotated - select for diffs
Mon Sep 9 11:30:05 2024 UTC (3 months ago) by riastradh
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -1 lines
mbsnrtowcs(3), wcsnrtombs(3): Add man pages for these mouthfuls.

Based on patch drafted by abhinav@, with a little additional tidying
by me.

PR standards/52343: wcsnrtombs missing man-page

Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Aug 15 21:19:45 2024 UTC (3 months, 3 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +5 -1 lines
libc: New functions c8rtomb(3) and mbrtoc8(3).

New in C23, for converting from UTF-8 to locale-dependent multibyte
sequences (c8rtomb) or vice versa (mbrtoc8), along with the new type
char8_t.

Conditional on either:
- _NETBSD_SOURCE
- _ISOC23_SOURCE
- __STDC_VERSION__ >= 202311L

(Riding the libc minor bump from this morning for the UTF-16/UTF-32
versions from C11.)

PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb

Revision 1.66: download - view: text, markup, annotated - select for diffs
Thu Aug 15 14:16:33 2024 UTC (3 months, 3 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +13 -1 lines
libc: New C11 functions mbrtoc16, mbrtoc32, c16rtomb, c32rtomb.

The mbrtoc16/32 functions read mulitbyte strings according to the
current locale into UTF-16/32 code unit sequences; the c16/32rtomb
functions write UTF-16/32 code unit sequences into multibyte strings
according to the current locale.  The `r' means restartable: they
work incrementally and pick up where they left off.

NOTE: This bumps the libc minor version, since it adds new symbols.

PR lib/52374: <uchar.h> missing

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Feb 15 14:35:04 2021 UTC (3 years, 9 months ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: netbsd-10
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -2 lines
Add missing man pages (from FreeBSD)

Revision 1.64.20.2: download - view: text, markup, annotated - select for diffs
Fri Jul 21 20:22:29 2017 UTC (7 years, 4 months ago) by perseant
Branches: perseant-stdc-iso10646
Diff to: previous 1.64.20.1: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.20.1: +7 -3 lines
Move Unicode <-> ku/ten mapping into the individual codec modules.
Mapping is based on existing iconv data for single-byte encodings,
and included for several, but not all, multibyte encodings.

Revision 1.64.20.1: download - view: text, markup, annotated - select for diffs
Fri Jul 14 15:53:08 2017 UTC (7 years, 4 months ago) by perseant
Branches: perseant-stdc-iso10646
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +8 -2 lines
Initial commit of a mostly-working implementation of __STDC_ISO_10646__,
with collation support using the Unicode Collation Algorithm.

The conversion from men/ku/ten form to Unicode is a gross hack at present.
Fixing this, and fleshing out the LC_COLLATE locale component, are next
on the agenda.

Revision 1.60.6.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:15 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.60.6.1: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.6.1: +1 -2 lines
Rebase to HEAD as of a few days ago.

Revision 1.59.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:36:52 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.59.2.1: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.2.1: +4 -5 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Aug 18 20:03:48 2013 UTC (11 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: perseant-stdc-iso10646, netbsd-9
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -3 lines
Rename fixup to update_global to better reflect the purpose.
Remove the various Current pointers, they are implementation internals
that shouldn't be leaked. Remove _CATEGORY_DEFAULT related handling and
directly pick the implemenation pointer from the C locale.
Merge the C locale data into global_locale.c with the exception of
_DefaultRuneLocale. Mark that one hidden. Move _RUNE_LOCALE and
_CITRUS_CTYPE into multibyte.h and pick up the correct rl_citrus_ctype
for non-default locales.

Revision 1.60.6.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:21:05 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
resync from head

Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri May 17 12:55:57 2013 UTC (11 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -2 lines
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.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Apr 30 00:45:05 2013 UTC (11 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3 lines
Make that to process PATH_LOCALE the first time _find_category is
called. Use this to implement newlocale and provide duplocale/freelocale
as well. Based on patches by Takehiko Nozaki with simplications and fix
for the init order by myself.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Apr 14 23:44:53 2013 UTC (11 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -2 lines
Provide a const copy of global_locale for libc-internal use.
This will be used by *_l when a NULL pointer is given.

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:05:20 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +1 -10 lines
sync with head

Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Jan 20 16:31:29 2012 UTC (12 years, 10 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +1 -10 lines
Remove code for CITRUS!=yes.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Aug 14 09:07:37 2011 UTC (13 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -1 lines
annotate that some functions use non-literal format strings.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Jun 19 13:26:52 2010 UTC (14 years, 5 months ago) by tnozaki
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -3 lines
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.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Jun 7 13:52:30 2010 UTC (14 years, 6 months ago) by tnozaki
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -2 lines
1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
   so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
   prepareing for next libc major crunk.
4. bump libc minor version.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Jun 1 18:00:28 2010 UTC (14 years, 6 months ago) by tnozaki
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -2 lines
refactoring old locale-db(BSDCTYPE) loading method with mmap(2).

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun May 30 08:28:53 2010 UTC (14 years, 6 months ago) by tnozaki
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +9 -15 lines
1. fix build problem CITRUS=no
2. make CITRUS={yes,no} knob friendly with libc/compat.

Revision 1.52.4.1: download - view: text, markup, annotated - select for diffs
Thu Jan 15 03:24:07 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +38 -19 lines
Pull up following revision(s) (requested by tnozaki in ticket #222):
	distrib/sets/lists/base/mi: revision 1.788
	distrib/utils/libhack/Makefile.inc: revision 1.23
	distrib/utils/libhack/Makefile: revision 1.22
	etc/mtree/NetBSD.dist: revision 1.387
	include/locale.h: revision 1.15
	lib/libc/citrus/Makefile.inc: revision 1.6
	lib/libc/citrus/citrus_aliasname_local.h: revision 1.1
	lib/libc/citrus/citrus_bcs.h: revision 1.5
	lib/libc/citrus/citrus_bcs_strtol.c: revision 1.1
	lib/libc/citrus/citrus_bcs_strtoul.c: revision 1.1
	lib/libc/citrus/citrus_csmapper.c: revision 1.9
	lib/libc/citrus/citrus_fix_grouping.h: revision 1.1
	lib/libc/citrus/citrus_lc_ctype.c: revision 1.1
	lib/libc/citrus/citrus_lc_messages.c: revision 1.1
	lib/libc/citrus/citrus_lc_messages.h: revision 1.1
	lib/libc/citrus/citrus_lc_monetary.c: revision 1.1
	lib/libc/citrus/citrus_lc_monetary.h: revision 1.1
	lib/libc/citrus/citrus_lc_numeric.c: revision 1.1
	lib/libc/citrus/citrus_lc_numeric.h: revision 1.1
	lib/libc/citrus/citrus_lc_template.h: revision 1.1
	lib/libc/citrus/citrus_lc_template_decl.h: revision 1.1
	lib/libc/citrus/citrus_lc_time.c: revision 1.1
	lib/libc/citrus/citrus_lc_time.h: revision 1.1
	lib/libc/citrus/citrus_module.c: revision 1.8
	lib/libc/citrus/citrus_namespace.h: revision 1.7
	lib/libc/citrus/modules/citrus_euc.c: revision 1.13
	lib/libc/gen/Makefile.inc: revision 1.166
	lib/libc/gen/isctype.c: revision 1.17 via patch
	lib/libc/gen/tolower_.c: revision 1.10
	lib/libc/gen/toupper_.c: revision 1.10
	lib/libc/iconv/Makefile.inc: revision 1.3
	lib/libc/iconv/iconv.c: revision 1.7
	lib/libc/locale/Makefile.inc: revision 1.53
	lib/libc/locale/___runetype_mb.c: file removal
	lib/libc/locale/_wctrans.c: revision 1.7
	lib/libc/locale/_wctrans_local.h: revision 1.3
	lib/libc/locale/_wctype.c: revision 1.1
	lib/libc/locale/_wctype_local.h: revision 1.1
	lib/libc/locale/aliasname.c: revision 1.3
	lib/libc/locale/aliasname_local.h: revision 1.2
	lib/libc/locale/bsdctype.c: revision 1.1
	lib/libc/locale/bsdctype.h: revision 1.1
	lib/libc/locale/ctypeio.c: revision 1.8
	lib/libc/locale/ctypeio.h: revision 1.2
	lib/libc/locale/current_locale.c: revision 1.1
	lib/libc/locale/dummy_lc_collate.c: revision 1.1
	lib/libc/locale/dummy_lc_template.h: revision 1.1
	lib/libc/locale/fix_grouping.c: revision 1.1
	lib/libc/locale/fix_grouping.h: revision 1.1
	lib/libc/locale/generic_lc_all.c: revision 1.1
	lib/libc/locale/generic_lc_template.h: revision 1.1
	lib/libc/locale/generic_lc_template_decl.h: revision 1.1
	lib/libc/locale/global_locale.c: revision 1.1
	lib/libc/locale/iswctype.c: file removal
	lib/libc/locale/iswctype_mb.c: revision 1.1
	lib/libc/locale/iswctype_sb.c: revision 1.6
	lib/libc/locale/lcmessages.c: file removal
	lib/libc/locale/lcmessages.h: file removal
	lib/libc/locale/lcmonetary.c: file removal
	lib/libc/locale/lcmonetary.h: file removal
	lib/libc/locale/lcnumeric.c: file removal
	lib/libc/locale/lcnumeric.h: file removal
	lib/libc/locale/lctime.c: file removal
	lib/libc/locale/lctime.h: file removal
	lib/libc/locale/localeconv.c: revision 1.15
	lib/libc/locale/localeio.c: revision 1.2
	lib/libc/locale/localeio.h: revision 1.2
	lib/libc/locale/localeio_lc_ctype.c: revision 1.1
	lib/libc/locale/localeio_lc_messages.c: revision 1.1
	lib/libc/locale/localeio_lc_monetary.c: revision 1.1
	lib/libc/locale/localeio_lc_numeric.c: revision 1.1
	lib/libc/locale/localeio_lc_time.c: revision 1.1
	lib/libc/locale/multibyte.h: revision 1.4
	lib/libc/locale/multibyte_amd1.c: revision 1.6
	lib/libc/locale/multibyte_c90.c: revision 1.5
	lib/libc/locale/nb_lc_messages_misc.h: revision 1.1
	lib/libc/locale/nb_lc_monetary_misc.h: revision 1.1
	lib/libc/locale/nb_lc_numeric_misc.h: revision 1.1
	lib/libc/locale/nb_lc_template.h: revision 1.1
	lib/libc/locale/nb_lc_template_decl.h: revision 1.1
	lib/libc/locale/nb_lc_time_misc.h: revision 1.1
	lib/libc/locale/nl_langinfo.c: revision 1.12
	lib/libc/locale/rune.c: revision 1.31
	lib/libc/locale/rune.h: revision 1.13
	lib/libc/locale/rune_local.h: revision 1.11
	lib/libc/locale/runeglue.c: revision 1.14
	lib/libc/locale/runetable.c: revision 1.18
	lib/libc/locale/setlocale.c: revision 1.55 via patch
	lib/libc/locale/setlocale_local.h: revision 1.1
	lib/libc/locale/setrunelocale.c: file removal
	lib/libc/nls/Makefile.inc: revision 1.9
	lib/libc/nls/catopen.c: revision 1.26
	lib/libc/string/Makefile.inc: revision 1.68
	lib/libc/string/wcscmp.c: revision 1.6
	lib/libc/string/wcsncmp.c: revision 1.6
	lib/libc/string/wcswidth.c: file removal
	lib/libc/string/wmemcmp.c: revision 1.4
	regress/lib/libc/locale/Makefile: revision 1.4
	regress/lib/libc/locale/ctype1/Makefile: revision 1.4
	regress/lib/libc/locale/ctype1/en_US.UTF-8.exp.uue: revision 1.2
	regress/lib/libc/locale/ctype1/ja_JP.ISO-2022-JP.exp.uue: revision 1.1
	regress/lib/libc/locale/ctype1/ja_JP.ISO-2022-JP.in.uue: revision 1.1
	regress/lib/libc/locale/ctype1/ja_JP.ISO2022-JP.exp.uue: file removal
	regress/lib/libc/locale/ctype1/ja_JP.ISO2022-JP.in.uue: file removal
	regress/lib/libc/locale/ctype1/ja_JP.SJIS.exp.uue: revision 1.2
	regress/lib/libc/locale/ctype1/ja_JP.eucJP.exp.uue: revision 1.2
	regress/lib/libc/locale/ctype2/Makefile: revision 1.5
	regress/lib/libc/locale/ctype2/ja_JP.ISO-2022-JP-2.in.uue: revision 1.1
	regress/lib/libc/locale/ctype2/ja_JP.ISO2022-JP2.in.uue: file removal
	regress/lib/libc/locale/ctype3/Makefile: revision 1.5
	regress/lib/libc/locale/mbtowc/Makefile: revision 1.3
	regress/lib/libc/locale/mbtowc/ja_JP.ISO-2022-JP: revision 1.1
	regress/lib/libc/locale/mbtowc/ja_JP.ISO2022-JP: file removal
	regress/lib/libc/locale/wcstod/wcstod_test.c: revision 1.2
	share/locale/Makefile.locale: revision 1.1
	share/locale/Makefile: revision 1.5
	share/locale/ctype/Makefile: revision 1.28
	share/locale/locale.alias: revision 1.11
	share/locale/messages/Makefile: revision 1.5
	share/locale/messages/en_US.ISO8859-1.src: file removal
	share/locale/messages/en_US.US-ASCII.src: revision 1.1
	share/locale/messages/ja_JP.ISO-2022-JP.src: revision 1.1
	share/locale/messages/ja_JP.ct.src: revision 1.1
	share/locale/messages/sr_ME.ISO8859-2.src: revision 1.1
	share/locale/messages/sr_ME.ISO8859-5.src: revision 1.1
	share/locale/messages/sr_YU.ISO8859-2.src: file removal
	share/locale/messages/sr_YU.ISO8859-5.src: file removal
	share/locale/messages/sr_YU.UTF-8.src: file removal
	share/locale/messages/zh_CN.GB18030.src: file removal
	share/locale/messages/zh_TW.eucTW.src: revision 1.1
	share/locale/monetary/Makefile: revision 1.5
	share/locale/monetary/af_ZA.ISO8859-1.src: revision 1.2
	share/locale/monetary/am_ET.UTF-8.src: revision 1.2
	share/locale/monetary/be_BY.CP1131.src: file removal
	share/locale/monetary/be_BY.CP1251.src: revision 1.2
	share/locale/monetary/be_BY.ISO8859-5.src: revision 1.2
	share/locale/monetary/be_BY.UTF-8.src: revision 1.2
	share/locale/monetary/bg_BG.CP1251.src: revision 1.2
	share/locale/monetary/bg_BG.UTF-8.src: revision 1.2
	share/locale/monetary/ca_ES.ISO8859-1.src: revision 1.2
	share/locale/monetary/cs_CZ.ISO8859-2.src: revision 1.2
	share/locale/monetary/cs_CZ.UTF-8.src: revision 1.2
	share/locale/monetary/da_DK.ISO8859-1.src: revision 1.2
	share/locale/monetary/de_AT.ISO8859-1.src: revision 1.2
	share/locale/monetary/de_CH.ISO8859-1.src: revision 1.2
	share/locale/monetary/de_DE.ISO8859-1.src: revision 1.2
	share/locale/monetary/el_GR.ISO8859-7.src: revision 1.2
	share/locale/monetary/en_AU.ISO8859-1.src: revision 1.2
	share/locale/monetary/en_CA.ISO8859-1.src: revision 1.2
	share/locale/monetary/en_GB.ISO8859-1.src: revision 1.2
	share/locale/monetary/en_GB.UTF-8.src: revision 1.2
	share/locale/monetary/en_IE.UTF-8.src: revision 1.2
	share/locale/monetary/en_NZ.ISO8859-1.src: revision 1.2
	share/locale/monetary/en_US.ISO8859-1.src: revision 1.2
	share/locale/monetary/en_US.US-ASCII.src: revision 1.1
	share/locale/monetary/es_ES.ISO8859-1.src: revision 1.2
	share/locale/monetary/et_EE.ISO8859-15.src: revision 1.2
	share/locale/monetary/fi_FI.ISO8859-1.src: revision 1.2
	share/locale/monetary/fr_BE.ISO8859-1.src: revision 1.2
	share/locale/monetary/fr_CA.ISO8859-1.src: revision 1.2
	share/locale/monetary/fr_FR.ISO8859-1.src: revision 1.2
	share/locale/monetary/he_IL.UTF-8.src: revision 1.2
	share/locale/monetary/hi_IN.ISCII-DEV.src: revision 1.2
	share/locale/monetary/hr_HR.ISO8859-2.src: revision 1.2
	share/locale/monetary/hu_HU.ISO8859-2.src: revision 1.2
	share/locale/monetary/hy_AM.ARMSCII-8.src: revision 1.2
	share/locale/monetary/hy_AM.UTF-8.src: revision 1.2
	share/locale/monetary/is_IS.ISO8859-1.src: revision 1.2
	share/locale/monetary/it_IT.ISO8859-1.src: revision 1.2
	share/locale/monetary/ja_JP.ISO-2022-JP.src: revision 1.1
	share/locale/monetary/ja_JP.UTF-8.src: revision 1.2
	share/locale/monetary/ja_JP.eucJP.src: revision 1.2
	share/locale/monetary/kk_KZ.PT154.src: revision 1.2
	share/locale/monetary/kk_KZ.UTF-8.src: revision 1.2
	share/locale/monetary/ko_KR.UTF-8.src: revision 1.2
	share/locale/monetary/ko_KR.eucKR.src: revision 1.2
	share/locale/monetary/lt_LT.ISO8859-13.src: revision 1.2
	share/locale/monetary/mn_MN.UTF-8.src: revision 1.2
	share/locale/monetary/nl_BE.ISO8859-1.src: revision 1.2
	share/locale/monetary/nl_NL.ISO8859-1.src: revision 1.2
	share/locale/monetary/no_NO.ISO8859-1.src: revision 1.2
	share/locale/monetary/pl_PL.ISO8859-2.src: revision 1.2
	share/locale/monetary/pl_PL.UTF-8.src: revision 1.2
	share/locale/monetary/pt_BR.ISO8859-1.src: revision 1.2
	share/locale/monetary/pt_PT.ISO8859-1.src: revision 1.2
	share/locale/monetary/ro_RO.ISO8859-2.src: revision 1.2
	share/locale/monetary/ru_RU.CP1251.src: revision 1.2
	share/locale/monetary/ru_RU.CP866.src: revision 1.2
	share/locale/monetary/ru_RU.ISO8859-5.src: revision 1.2
	share/locale/monetary/ru_RU.KOI8-R.src: revision 1.2
	share/locale/monetary/ru_RU.UTF-8.src: revision 1.2
	share/locale/monetary/sk_SK.ISO8859-2.src: revision 1.2
	share/locale/monetary/sl_SI.ISO8859-2.src: revision 1.2
	share/locale/monetary/sr_ME.ISO8859-2.src: revision 1.1
	share/locale/monetary/sr_RS.ISO8859-2.src: revision 1.1
	share/locale/monetary/sr_YU.ISO8859-2.src: revision 1.2
	share/locale/monetary/sr_YU.ISO8859-5.src: revision 1.2
	share/locale/monetary/sr_YU.UTF-8.src: revision 1.2
	share/locale/monetary/sv_SE.ISO8859-1.src: revision 1.2
	share/locale/monetary/tr_TR.ISO8859-9.src: revision 1.2
	share/locale/monetary/uk_UA.CP1251.src: revision 1.2
	share/locale/monetary/uk_UA.ISO8859-5.src: revision 1.2
	share/locale/monetary/uk_UA.KOI8-U.src: revision 1.2
	share/locale/monetary/uk_UA.UTF-8.src: revision 1.2
	share/locale/monetary/zh_CN.GB18030.src: revision 1.2
	share/locale/monetary/zh_CN.UTF-8.src: revision 1.2
	share/locale/monetary/zh_CN.eucCN.src: revision 1.2
	share/locale/monetary/zh_HK.Big5hkscs.src: revision 1.1
	share/locale/monetary/zh_HK.UTF-8.src: revision 1.2
	share/locale/monetary/zh_TW.Big5.src: revision 1.2
	share/locale/numeric/Makefile: revision 1.4
	share/locale/numeric/am_ET.UTF-8.src: file removal
	share/locale/numeric/en_US.ISO8859-1.src: file removal
	share/locale/numeric/en_US.US-ASCII.src: revision 1.1
	share/locale/numeric/ja_JP.eucJP.src: file removal
	share/locale/numeric/ko_KR.eucKR.src: file removal
	share/locale/numeric/mn_MN.UTF-8.src: file removal
	share/locale/numeric/sr_ME.ISO8859-2.src: revision 1.1
	share/locale/numeric/sr_YU.ISO8859-2.src: file removal
	share/locale/numeric/sr_YU.ISO8859-5.src: file removal
	share/locale/numeric/zh_CN.eucCN.src: file removal
	share/locale/time/Makefile: revision 1.5
	share/locale/time/en_US.ISO8859-1.src: file removal
	share/locale/time/en_US.US-ASCII.src: revision 1.1
	share/locale/time/ja_JP.ISO-2022-JP.src: revision 1.1
	share/locale/time/ja_JP.ct.src: revision 1.1
	share/locale/time/sr_ME.ISO8859-2.src: revision 1.1
	share/locale/time/sr_ME.ISO8859-5.src: revision 1.1
	share/locale/time/sr_ME.UTF-8.src: revision 1.1
	share/locale/time/sr_YU.ISO8859-2.src: file removal
	share/locale/time/sr_YU.ISO8859-5.src: file removal
	share/locale/time/sr_YU.UTF-8.src: file removal
	share/locale/time/zh_CN.GB18030.src: file removal
	share/locale/time/zh_TW.eucTW.src: revision 1.1
	usr.bin/locale/locale.c: revision 1.6
	usr.bin/mklocale/Makefile: revision 1.12
	usr.bin/mklocale/lex.l: revision 1.14
	usr.bin/mklocale/mklocaledb.c: revision 1.1
	usr.bin/mklocale/yacc.y: revision 1.25
	usr.sbin/chrtbl/Makefile: revision 1.8
	usr.sbin/chrtbl/ctypeio.c: revision 1.1
	usr.sbin/chrtbl/ctypeio.h: revision 1.1
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.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:46:28 2009 UTC (15 years, 11 months ago) by christos
Branches: MAIN
CVS tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +1 -1 lines
merge christos-time_t

Revision 1.52.6.2: download - view: text, markup, annotated - select for diffs
Sun Jan 4 17:02:19 2009 UTC (15 years, 11 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.52.6.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.6.1: +70 -0 lines
merge with head.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Jan 2 00:20:19 2009 UTC (15 years, 11 months ago) by tnozaki
Branches: MAIN
CVS tags: christos-time_t-nbase, christos-time_t-base
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +38 -19 lines
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.

Revision 1.51.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:29:32 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +4 -3 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.51.10.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:30:17 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +4 -3 lines
sync with head.

Revision 1.52.6.1
Sat May 17 03:49:54 2008 UTC (16 years, 6 months ago) by christos
Branches: christos-time_t
FILE REMOVED
Changes since revision 1.52: +0 -51 lines
file Makefile.inc was added on branch christos-time_t on 2009-01-04 17:02:19 +0000

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat May 17 03:49:54 2008 UTC (16 years, 6 months ago) by ginsbach
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, netbsd-5-base, matt-mips64-base2, hpcarm-cleanup-nbase
Branch point for: netbsd-5, christos-time_t
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -3 lines
Add support for additional locale categories: LC_MESSAGES, LC_MONETARY,
LC_NUMERIC.

The code used to load LC_TIME was refactored in to a more general routine.
This common routine is now used to load LC_TIME along with the newly added
categories.

Changes discussed with/reviewed by christos.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Mar 28 19:05:48 2007 UTC (17 years, 8 months ago) by manu
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42, wrstuden-revivesa
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -2 lines
Add support for LC_TIME, from  Joachim Kuebart, through PR lib/10877

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Oct 13 17:28:09 2006 UTC (18 years, 2 months ago) by tnozaki
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -2 lines
PR/30809 added manpages of wcswcs(3) and wcscoll(3), wcsxfrm(3)
(wcs?width and wprintf are already in repository).

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Jun 3 04:36:45 2006 UTC (18 years, 6 months ago) by tnozaki
Branches: MAIN
CVS tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +5 -3 lines
fix lib/33476:
  added following manpages (derived from FreeBSD),
    wcwidth(3) wcswidth(3)
    wcstol(3) wcstoll(3) wcstoimax(3)
    wcstoul(3) wcstoull(3) wcstoumax(3)
  and update doc/TODO.i18n.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Apr 15 12:17:23 2006 UTC (18 years, 8 months ago) by tnozaki
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +6 -2 lines
add c99 wcstof(3) and wcstold(3).
requested by skrll AT netbsd DOT org, thanks.

bump libc minor 138 -> 139.

Revision 1.45.6.1: download - view: text, markup, annotated - select for diffs
Wed Apr 6 13:38:56 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +2 -2 lines
Pull up revision 1.46 (requested by christos in ticket #102):
PR/29826: J. T. Conklin: Add wcsftime(3) (from FreeBSD)

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Mar 30 10:15:12 2005 UTC (19 years, 8 months ago) by wiz
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -2 lines
Add man page for wcsftime from FreeBSD.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Mar 30 03:47:12 2005 UTC (19 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -2 lines
PR/29826: J. T. Conklin: Add wcsftime(3) (from FreeBSD)

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Mar 11 09:21:23 2003 UTC (21 years, 9 months ago) by tshiozak
Branches: MAIN
CVS tags: netbsd-3-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Branch point for: netbsd-3
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -2 lines
add wcstoll, wcstoimax, wcstoull and wcstoumax. (lib/20656)
  - these are defined in C99 (wcsto[ui]max) and SUSv3.
  - these implementations are written by sigsegv@s25.xrea.com,
    derived from NetBSD's wcstol/wcstoul.
  - I just added some comments.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Mar 5 20:18:16 2003 UTC (21 years, 9 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -4 lines
changes related to lib/20576 and lib/20577.
  - add wcstok() and wcswcs(),
  - add wcstok(3),
  - move btowc() and wctob() into each ctype modules,
  - bump ctype interface ABI version,
  - bump i18n modules' minor and
  - update sets.
and fix a stupid bug in _RUNE_ISCACHED macro.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Mar 4 12:11:49 2003 UTC (21 years, 9 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -4 lines
add manual pages for iswctype(), towctrans(), wctype() and wctrans().

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Mar 3 08:24:58 2003 UTC (21 years, 9 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3 lines
- add btowc.3 / wctob.3.
- fix an unappropriate comment in wctob.c

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Mar 3 07:39:54 2003 UTC (21 years, 9 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -2 lines
 - add wctob() function. (I forgot it at the last commit.)
 - fix btowc(); I quite misunderstood about it.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Mar 2 22:18:12 2003 UTC (21 years, 9 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -6 lines
add some ISO C 1995 I18N functions and types:
  btowc, wctrans, towctrans, wcscoll, wcsxfrm, wctype_t and wctrans_t.

Revision 1.34.2.3: download - view: text, markup, annotated - select for diffs
Fri Mar 22 20:42:15 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.34.2.2: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.2.2: +14 -11 lines
Catch up to -current.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Mar 18 06:00:26 2002 UTC (22 years, 8 months ago) by tshiozak
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -2 lines
add manpages for mb*/wc* functions.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Mar 17 22:14:24 2002 UTC (22 years, 8 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +10 -10 lines
refine i18n stuffs.
  - add libc/citrus directory.
    this directory contains the common stuffs not only for locale
    but also other facilities relating to i18n (e.g. iconv).
  - To keep the binary compatibility for the ctype modules easily,
    the interface between libc and the modules is simplified.
  - For the future integrated extension, module pool is renamed
    from "/usr/lib/runemodule" to "/usr/lib/i18n".
    In the future, this directory will contain the modules for "iconv",
    "collation", etc.
  - some cosmetic changes.
  - Bug fix for runetype.h; __attribute__((__packed__)) is placed at
    the wrong position and it is invalid unintentionally.
    But, the all members of the structures seem well-aligned.  Thus,
    this bug causes no problem, hopefully.

HEADS UP:
  - /usr/lib/rumemodule is obsoleted.  If you use the multibyte locales,
    you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
  - The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
    Perhaps, the bug fix about __packed__ mentioned above breaks the
    compatibility...  Be careful especially on 64bit platforms.

Revision 1.34.2.2: download - view: text, markup, annotated - select for diffs
Fri Mar 8 21:35:22 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.34.2.1: preferred, colored
Changes since revision 1.34.2.1: +2 -2 lines
Catch up to -current.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Feb 13 07:45:52 2002 UTC (22 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -2 lines
add a function to handle alias names.
(primarily for nls, encoding and locale names)

Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:19:45 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -3 lines
Catch up to -current.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Sep 27 16:30:36 2001 UTC (23 years, 2 months ago) by yamt
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -2 lines
add wcstod/wcstol/wcstoul.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Apr 1 17:45:07 2001 UTC (23 years, 8 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2 lines
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

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Jan 25 09:21:57 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +6 -6 lines
(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.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Jan 25 01:25:05 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -6 lines
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.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Jan 22 00:29:46 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
move __mb_cur_max to dedicated *.o, so that we do not pull in
locale stuff just by calling printf().

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Dec 27 00:57:03 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
re-enable citrus (rune)locale support.

XXX please clean and recompile libc if you get this revision.  UPDATE=yes
may leave obsolete *.o.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Dec 25 23:30:58 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +12 -3 lines
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.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Dec 23 23:14:33 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -17 lines
move wcs* and wmem* from lib/libc/locale to lib/libc/string.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Dec 22 05:21:41 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -3 lines
add wcsl{cat,cpy} - outside of ISO/IEC 9899:1999,
but i believe it should be there.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Dec 22 04:59:41 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -2 lines
ad manpage for wide character string manipulation (wmem*/wcs*)

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Dec 22 02:18:58 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -2 lines
manpage for tow*.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Dec 22 02:03:32 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +13 -2 lines
manpage for isw*.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Dec 21 12:17:35 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -1 lines
add multibyte locale converters (just for use by testers at this moment,
to be built as dynamically loadable binary)

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Dec 21 12:13:28 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -2 lines
support multibytes in isw*/tow*.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Dec 21 11:29:47 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -1 lines
first import of citrus LC_CTYPE locale.  singlebyte only at this moment.
shot-term TODO:
- enable multibyte locales.  this includes loadable locale modules
  (#ifdef DLRUNE).
- populate LC_CTYPE definition files.
- other functions such as iconv()
- make libc functions more friendly with multibyte.
- multilingualize other LC_xx
- torture tests

XXX don't forget to "make depend" when you rebuild libc, multibyte.c is
moved from lib/libc/stdlib to lib/libc/locale.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Dec 21 08:30:53 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
add dummy wcwidth() and wcswidth().  wcwidth() will be updated later.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Dec 21 05:40:57 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2 lines
have dummy wctype.h and isw*/tow*.  part of libc minor 68 -> 69 crank.
equivalent to is*/to* at this moment.  we'll put wchar_t code in the
near future.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Dec 21 05:12:19 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -2 lines
add wcs* functions.  consier it as part of libc minor crank 68 -> 69.
add decl of WEOF into wchar.h.  ISO/IEC 9899:1999(E)..

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Dec 20 14:53:24 2000 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2 lines
add wmem* functions, from citrus.  bump libc shlib minor.

Revision 1.16.10.1: download - view: text, markup, annotated - select for diffs
Wed Aug 9 17:42:22 2000 UTC (24 years, 4 months ago) by tshiozak
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +2 -2 lines
pull up the following changes (approved by thorpej):
 > cvs rdiff -r1.9 -r1.10 basesrc/include/locale.h
 > cvs rdiff -r1.45 -r1.46 basesrc/include/stdlib.h
 > cvs rdiff -r1.16 -r1.17 basesrc/lib/libc/locale/Makefile.inc
 > cvs rdiff -r1.17 -r1.18 basesrc/lib/libc/locale/setlocale.c
 > cvs rdiff -r0 -r1.2 basesrc/lib/libc/locale/setlocale_sb.c
 > cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/alpha/include/limits.h
 > cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/arm26/include/limits.h
 > cvs rdiff -r1.7 -r1.8 syssrc/sys/arch/arm32/include/limits.h
 > cvs rdiff -r1.14 -r1.15 syssrc/sys/arch/i386/include/limits.h
 > cvs rdiff -r1.12 -r1.13 syssrc/sys/arch/m68k/include/limits.h
 > cvs rdiff -r1.13 -r1.14 syssrc/sys/arch/mips/include/limits.h
 > cvs rdiff -r1.10 -r1.11 syssrc/sys/arch/pc532/include/limits.h
 > cvs rdiff -r1.6 -r1.7 syssrc/sys/arch/powerpc/include/limits.h
 > cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/sh3/include/limits.h
 > cvs rdiff -r1.11 -r1.12 syssrc/sys/arch/sparc/include/limits.h
 > cvs rdiff -r1.7 -r1.8 syssrc/sys/arch/sparc64/include/limits.h
 > cvs rdiff -r1.9 -r1.10 syssrc/sys/arch/vax/include/limits.h
 >
 > Outline:
 >
 > Preparation for the future introduction of multibyte locale.
 >  - MB_LEN_MAX is increased to 32.
 >  - To ensure binary compatibility for old executables
 >    under multibyte locale, versioned setlocale is added.
 >  - __mb_len_cur definision is added in setlocale.c
 >    and enable it in stdlib.h .
 >    It is also important for multibyte locale stuffs,
 >    but I just forgot.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Aug 8 22:31:14 2000 UTC (24 years, 4 months ago) by tshiozak
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
Preparation for the future introduction of multibyte locale.
 - MB_LEN_MAX is increased to 32.
 - To ensure binary compatibility for old executables
   under multibyte locale, versioned setlocale is added.
 - __mb_len_cur definision is added in setlocale.c
   and enable it in stdlib.h .
   It is also important for multibyte locale stuffs,
   but I just forgot.

Revision 1.16.8.1: download - view: text, markup, annotated - select for diffs
Sun May 28 22:41:03 2000 UTC (24 years, 6 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +34 -2 lines
Citrus Project XPG4DL, an implementation of I18N (locale) framework,
is imported.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Feb 24 15:05:20 1999 UTC (25 years, 9 months ago) by drochner
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5, minoura-xpg4dl
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jul 15 09:22:31 1997 UTC (27 years, 5 months ago) by kleink
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -1 lines
Link localeconv(3) to setlocale(3).

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Jul 12 17:52:31 1997 UTC (27 years, 5 months ago) by perry
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
add setlocale.3 man page

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Jun 2 09:52:45 1997 UTC (27 years, 6 months ago) by kleink
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Add support for localized character sets (a.k.a. LC_CTYPE).

Thanks go to Matthias Scheler <tron@lyssa.owl.de> for contributing his initial
work in PR/3592, and to Christos Zoulas for refining it!

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Apr 29 16:40:13 1997 UTC (27 years, 7 months ago) by kleink
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -1 lines
RCSid police.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Dec 22 10:14:25 1994 UTC (29 years, 11 months ago) by cgd
Branches: MAIN
CVS tags: nsswitch, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, ivory_soap2, ivory_soap
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
specify man pages the new way.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Sep 29 04:57:23 1994 UTC (30 years, 2 months ago) by jtc
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Minor tweaks to prepare for checkin of real i18n code.

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 16 05:12:27 1994 UTC (30 years, 5 months ago) by jtc
Branches: netbsd-1-0
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.1: +10 -0 lines
Added a nl_langinfo(3) man page.

Revision 1.9.2.1
Sat Jul 16 05:12:26 1994 UTC (30 years, 5 months ago) by jtc
Branches: netbsd-1-0
FILE REMOVED
Changes since revision 1.9: +0 -10 lines
file Makefile.inc was added on branch netbsd-1-0 on 1994-07-16 05:12:27 +0000

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jul 16 05:12:26 1994 UTC (30 years, 5 months ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Branch point for: netbsd-1-0
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -1 lines
Added a nl_langinfo(3) man page.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jun 21 04:14:00 1994 UTC (30 years, 5 months ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-0-base
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
Add nl_langinfo(), a SysV-X/Open function that provides access to some
of the locale info.

Some of the POSIX.2 utilities require this information, and I thought it
was better to use an existing interface rather than rolling my own.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu May 26 00:31:53 1994 UTC (30 years, 6 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
fix typo

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed May 25 01:49:32 1994 UTC (30 years, 6 months ago) by jtc
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
New localeconv() implementation that constructs it's return value from
the current numeric and current monetary locale data.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed May 25 01:17:14 1994 UTC (30 years, 6 months ago) by jtc
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2 lines
Compile the default locale data for LC_NUMERIC, LC_MONETARY, and LC_TIME.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Dec 4 02:36:00 1993 UTC (31 years ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
update for .S and MACHINE_ARCH

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Oct 7 00:23:13 1993 UTC (31 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
make an arch directory in libc, and move all machine dirs into it

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Aug 1 05:40:56 1993 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1 lines
Add RCS identifiers.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months ago) by cgd
Branches: WFJ-920714
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, netbsd-0-8, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>