Rich Felker
4350935ca4
add ABI compat aliases for a number of locale_t functions
13 years ago
Rich Felker
4b0306c83c
prepare strcoll/wcscoll for LC_COLLATE support and add ABI symbols
13 years ago
Rich Felker
0a37d99547
move strftime_l into strftime.c and add __-prefixed version
the latter is both for ABI purposes, and to facilitate eventually
adding LC_TIME support. it's also nice to eliminate an extra source
file.
13 years ago
Rich Felker
6a4cfbdbe7
fix iconv conversion to legacy 8bit codepages
this seems to have been a simple copy-and-paste error from the code
for converting from legacy codepages.
13 years ago
Rich Felker
400c5e5c83
use restrict everywhere it's required by c99 and/or posix 2008
to deal with the fact that the public headers may be used with pre-c99
compilers, __restrict is used in place of restrict, and defined
appropriately for any supported compiler. we also avoid the form
[restrict] since older versions of gcc rejected it due to a bug in the
original c99 standard, and instead use the form *restrict.
14 years ago
Rich Felker
b3d7d062af
duplocale: don't crash when called with LC_GLOBAL_LOCALE
posix has resolved to add this usage; for now, we just avoid writing
anything to the new locale object since it's not used anyway.
14 years ago
Rich Felker
85a3ba3a28
fix localeconv values and implementation
dynamic-allocation of the structure is not valid; it can crash an
application if malloc fails. since localeconv is not specified to have
failure conditions, the object needs to have static storage duration.
need to review whether all the values are right or not still..
14 years ago
Rich Felker
26710be714
fix multiple iconv bugs reading utf-16/32 and wchar_t
14 years ago
Rich Felker
673633c689
fix iconv dest utf-16: unavailable chars must be replaced; EILSEQ is wrong
14 years ago
Rich Felker
a2f149b5d1
fix erroneous utf-16 encoding with surrogates in iconv
apparently this was never tested before.
14 years ago
Rich Felker
80d7859f32
fix major breakage in iconv, bogus rejecting of dest charsets
14 years ago
Rich Felker
bff650df9f
add strfmon_l variant (still mostly incomplete)
14 years ago
Rich Felker
25501c1079
initial, very primitive strfmon
14 years ago
Rich Felker
e0614f7cd4
add all missing wchar functions except floating point parsers
these are mostly untested and adapted directly from corresponding byte
string functions and similar.
14 years ago
Rich Felker
36bf56940a
more locale_t interfaces (string stuff) and header updates
this should be everything except for some functions where the non-_l
version isn't even implemented yet (mainly some non-ISO-C wcs*
functions).
14 years ago
Rich Felker
c09b6f8ab6
fix some omissions and mistakes in locale_t interface definitions
14 years ago
Rich Felker
e5a7f14c81
add more of the locale_t interfaces, all dummied out to ignore the locale
14 years ago
Rich Felker
0e2331c9b6
gb18030 support in iconv (only from, not to)
also support (and restrict to subsets) older chinese sets, and
explicitly refuse to convert to cjk (since there's no code for it yet)
15 years ago
Rich Felker
95a85e047e
legacy japanese charset support in iconv (only from, not to)
15 years ago
Rich Felker
594b16e004
simplify iconv and support more legacy codepages
15 years ago
Rich Felker
2f0c415ceb
iconv was not returning -1 on most failure
this broke most uses of iconv in real-world programs, especially
glib's iconv wrappers.
15 years ago
Rich Felker
11c531e21d
implement uselocale function (minimal)
15 years ago
Rich Felker
bb8d3d00e2
fix breakage due to converting a return type to size_t in iconv...
15 years ago
Rich Felker
5600088d38
fix nl_langinfo to actually use the existing, correct internal version
15 years ago
Rich Felker
9ae8d5fc71
fix all implicit conversion between signed/unsigned pointers
sadly the C language does not specify any such implicit conversion, so
this is not a matter of just fixing warnings (as gcc treats it) but
actual errors. i would like to revisit a number of these changes and
possibly revise the types used to reduce the number of casts required.
15 years ago
Rich Felker
7fe308eb9f
use a more-correct integer type, and silence 64-bit warnings as a bonus
15 years ago
Rich Felker
0b44a0315b
initial check-in, version 0.5.0
15 years ago