summaryrefslogtreecommitdiff
path: root/src/locale
AgeCommit message (Collapse)AuthorLines
2013-06-26fix iconv conversion to legacy 8bit codepagesRich Felker-2/+2
this seems to have been a simple copy-and-paste error from the code for converting from legacy codepages.
2012-09-06use restrict everywhere it's required by c99 and/or posix 2008Rich Felker-8/+8
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.
2012-06-20duplocale: don't crash when called with LC_GLOBAL_LOCALERich Felker-1/+1
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.
2012-06-19fix localeconv values and implementationRich Felker-15/+28
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..
2012-06-18fix multiple iconv bugs reading utf-16/32 and wchar_tRich Felker-8/+8
2012-06-18fix iconv dest utf-16: unavailable chars must be replaced; EILSEQ is wrongRich Felker-2/+2
2012-06-18fix erroneous utf-16 encoding with surrogates in iconvRich Felker-0/+1
apparently this was never tested before.
2012-04-21fix major breakage in iconv, bogus rejecting of dest charsetsRich Felker-1/+1
2012-03-25add strfmon_l variant (still mostly incomplete)Rich Felker-3/+27
2012-03-21initial, very primitive strfmonRich Felker-0/+77
2012-03-01add all missing wchar functions except floating point parsersRich Felker-0/+12
these are mostly untested and adapted directly from corresponding byte string functions and similar.
2012-02-06more locale_t interfaces (string stuff) and header updatesRich Felker-0/+48
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).
2012-02-06fix some omissions and mistakes in locale_t interface definitionsRich Felker-13/+13
2012-02-06add more of the locale_t interfaces, all dummied out to ignore the localeRich Felker-0/+108
2011-07-12gb18030 support in iconv (only from, not to)Rich Felker-2/+1887
also support (and restrict to subsets) older chinese sets, and explicitly refuse to convert to cjk (since there's no code for it yet)
2011-07-12legacy japanese charset support in iconv (only from, not to)Rich Felker-0/+597
2011-07-12simplify iconv and support more legacy codepagesRich Felker-352/+331
2011-07-03iconv was not returning -1 on most failureRich Felker-0/+2
this broke most uses of iconv in real-world programs, especially glib's iconv wrappers.
2011-05-30implement uselocale function (minimal)Rich Felker-0/+10
2011-04-07fix breakage due to converting a return type to size_t in iconv...Rich Felker-1/+1
2011-04-03fix nl_langinfo to actually use the existing, correct internal versionRich Felker-15/+5
2011-03-25fix all implicit conversion between signed/unsigned pointersRich Felker-11/+11
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.
2011-02-13use a more-correct integer type, and silence 64-bit warnings as a bonusRich Felker-2/+2
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+1292