Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix semantically incorrect use of LC_GLOBAL_LOCALE | Rich Felker | 2013-07-28 | 5 | -5/+5 |
| | | | | | | | | | | | | | LC_GLOBAL_LOCALE refers to the global locale, controlled by setlocale, not the thread-local locale in effect which these functions should be using. neither LC_GLOBAL_LOCALE nor 0 has an argument to the *_l functions has behavior defined by the standard, but 0 is a more logical choice for requesting the callee to lookup the current locale. in the future I may move the current locale lookup the the caller (the non-_l-suffixed wrapper). at this point, all of the locale logic is dummied out, so no harm was done, but it should at least avoid misleading usage. | ||||
* | rework langinfo code for ABI compat and for use by time code | Rich Felker | 2013-07-24 | 2 | -9/+8 |
| | |||||
* | update strxfrm/wcsxfrm for future LC_COLLATE support and ABI compat | Rich Felker | 2013-07-24 | 4 | -14/+20 |
| | |||||
* | add ABI compat aliases for a number of locale_t functions | Rich Felker | 2013-07-24 | 8 | -0/+24 |
| | |||||
* | prepare strcoll/wcscoll for LC_COLLATE support and add ABI symbols | Rich Felker | 2013-07-24 | 4 | -15/+20 |
| | |||||
* | move strftime_l into strftime.c and add __-prefixed version | Rich Felker | 2013-07-24 | 1 | -7/+0 |
| | | | | | | 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. | ||||
* | fix iconv conversion to legacy 8bit codepages | Rich Felker | 2013-06-26 | 1 | -2/+2 |
| | | | | | this seems to have been a simple copy-and-paste error from the code for converting from legacy codepages. | ||||
* | use restrict everywhere it's required by c99 and/or posix 2008 | Rich Felker | 2012-09-06 | 7 | -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. | ||||
* | duplocale: don't crash when called with LC_GLOBAL_LOCALE | Rich Felker | 2012-06-20 | 1 | -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. | ||||
* | fix localeconv values and implementation | Rich Felker | 2012-06-19 | 1 | -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.. | ||||
* | fix multiple iconv bugs reading utf-16/32 and wchar_t | Rich Felker | 2012-06-18 | 1 | -8/+8 |
| | |||||
* | fix iconv dest utf-16: unavailable chars must be replaced; EILSEQ is wrong | Rich Felker | 2012-06-18 | 1 | -2/+2 |
| | |||||
* | fix erroneous utf-16 encoding with surrogates in iconv | Rich Felker | 2012-06-18 | 1 | -0/+1 |
| | | | | apparently this was never tested before. | ||||
* | fix major breakage in iconv, bogus rejecting of dest charsets | Rich Felker | 2012-04-21 | 1 | -1/+1 |
| | |||||
* | add strfmon_l variant (still mostly incomplete) | Rich Felker | 2012-03-25 | 1 | -3/+27 |
| | |||||
* | initial, very primitive strfmon | Rich Felker | 2012-03-21 | 1 | -0/+77 |
| | |||||
* | add all missing wchar functions except floating point parsers | Rich Felker | 2012-03-01 | 2 | -0/+12 |
| | | | | | these are mostly untested and adapted directly from corresponding byte string functions and similar. | ||||
* | more locale_t interfaces (string stuff) and header updates | Rich Felker | 2012-02-06 | 7 | -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). | ||||
* | fix some omissions and mistakes in locale_t interface definitions | Rich Felker | 2012-02-06 | 13 | -13/+13 |
| | |||||
* | add more of the locale_t interfaces, all dummied out to ignore the locale | Rich Felker | 2012-02-06 | 18 | -0/+108 |
| | |||||
* | gb18030 support in iconv (only from, not to) | Rich Felker | 2011-07-12 | 2 | -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) | ||||
* | legacy japanese charset support in iconv (only from, not to) | Rich Felker | 2011-07-12 | 2 | -0/+597 |
| | |||||
* | simplify iconv and support more legacy codepages | Rich Felker | 2011-07-12 | 3 | -352/+331 |
| | |||||
* | iconv was not returning -1 on most failure | Rich Felker | 2011-07-03 | 1 | -0/+2 |
| | | | | | this broke most uses of iconv in real-world programs, especially glib's iconv wrappers. | ||||
* | implement uselocale function (minimal) | Rich Felker | 2011-05-30 | 1 | -0/+10 |
| | |||||
* | fix breakage due to converting a return type to size_t in iconv... | Rich Felker | 2011-04-07 | 1 | -1/+1 |
| | |||||
* | fix nl_langinfo to actually use the existing, correct internal version | Rich Felker | 2011-04-03 | 2 | -15/+5 |
| | |||||
* | fix all implicit conversion between signed/unsigned pointers | Rich Felker | 2011-03-25 | 1 | -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. | ||||
* | use a more-correct integer type, and silence 64-bit warnings as a bonus | Rich Felker | 2011-02-13 | 1 | -2/+2 |
| | |||||
* | initial check-in, version 0.5.0 v0.5.0 | Rich Felker | 2011-02-12 | 31 | -0/+1292 |