summaryrefslogtreecommitdiffstats
path: root/libc/misc/wchar/wchar.c
Commit message (Collapse)AuthorAgeFilesLines
* wchar: bug #1471: fix cornercase in mbrtowcBernhard Reutner-Fischer2010-11-241-0/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* wchar.c: fix indentationDenys Vlasenko2010-01-241-10/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-181-20/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* fix make {,install_}{,host}utilsBernhard Reutner-Fischer2009-09-181-209/+46
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* wchar: fix inverted parameters in error messageAndré Goddard Rosa2009-06-281-1/+1
| | | | | | | | | | The error message should output "fromcode -> tocode" rather than "tocode -> fromcode". Seems to be a typo due to the order of the func called: iconv_t iconv_open(const char *tocode, const char *fromcode); Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* "make utils" now successfully makes utils for targetDenis Vlasenko2009-01-281-1/+1
|
* *: remove __UCLIBC_CURLOCALE_DATA, __UCLIBC_CURLOCALE_DATA.xDenis Vlasenko2009-01-211-9/+9
| | | | | | | | | | | | | | | | | | | is always equivalent to __UCLIBC_CURLOCALE->x. remove typedef __uclibc_locale_t, it used only in a few places, it is lees confusing to use struct __uclibc_locale_struct everywhere. xlocale.h: hide __global_locale back under _LIBC, bug 53 is wrong in claiming it should be exported. Also hide under _LIBC: extern __locale_t __curlocale_var; extern __locale_t __curlocale(void); extern __locale_t __curlocale_set(__locale_t newloc); # define __UCLIBC_CURLOCALE # define __XL_NPP(N) # define __LOCALE_PARAM # define __LOCALE_ARG # define __LOCALE_PTR
* more of pointer signedness warnings removedDenis Vlasenko2008-12-211-10/+10
|
* Fix wcswidth function when LOCALE support is disabledCarmelo Amoroso2008-12-021-0/+7
| | | | | | | | | | while keeping WCHAR support enabled. This solves two testcases: tst_wcwidth and tst_wcswidth. Fix dat_iswctype.c fiinput file: character 0x80 is not a control character: it fixes tst_iswctype test. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* fix apparent typo (unnoticed for long time, probablyDenis Vlasenko2008-11-211-1/+1
| | | | | because it didn't affect little endian arches)
* deal with TODOs left over from libc_hidden_proto removalDenis Vlasenko2008-11-211-3/+3
| | | | | (fixes build with locale enabled)
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-201-20/+22
| | | | | Appears to build fine (several .configs tried)
* i18n: Fix mbrtowc function to handle 0xc0 and 0xc1 sequence.Carmelo Amoroso2008-09-291-1/+2
| | | | | | | | | | When the first byte of the multibyte sequence start with 0xc0 or 0xc1, the whole sequence is invalid, so the return value must be -1 (instead of -2). Fix bug #686. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Acked-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix some locale multibyte tests failures ad below:Carmelo Amoroso2008-09-091-2/+8
| | | | | | | | | | | libc/stdlib/_strtod.c -> tst_wcstod; libc/stdlib/stdlib.c -> tst_mblen, tst_mbtowc, tst_wctomb; libc/stdio/_scanf.c -> tst_swscanf; libc/string/strncmp.c -> tst_wcsncmp; libc/misc/wchar/wchar.c -> tst_mbrlen, tst_mbrtowc, tst_wcswidth. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - remove a couple of duplicate includesBernhard Reutner-Fischer2008-08-271-3/+0
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-231-103/+103
|
* This fixes a problem with the move of libc_hidden_proto to string.h.Bernd Schmidt2008-06-041-1/+0
| | | | | | | | | | | | | The obsolete functions bcopy, index, etc. are not supposed to be used within uClibc itself. Hence, there is no libc_hidden_def for them, but the previous patch did not just move libc_hidden_protos, it also added new ones for the legacy functions. As a result, programs which use these functions can no longer link with uClibc. This fixes it by removing the unnecessary libc_hidden_protos. I've also removed all inclusions of <strings.h> from uClibc source files: since we define _GNU_SOURCE, it is sufficient to include <string.h>. We then do not need to duplicate the libc_hidden_proto block in <strings.h>.
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-191-1/+1
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* select needs sys/select.h, str[n]casecmp/ffs needs strings.h, if BSD is not ↵Peter S. Mazinger2006-03-231-0/+1
| | | | defined, gettimeofday has other prototype and tm_gmtoff/tm_zone do not exist
* Mark some functions as GNU, provide missing hidden memmem, remove ↵Peter S. Mazinger2006-03-221-1/+0
| | | | _ISOC99/XOPEN_SOURCE
* Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, ↵Peter S. Mazinger2006-03-101-3/+0
| | | | most of global data relocations are back
* global data uses libc_hidden_data_def, convert all -I hope- and add some newPeter S. Mazinger2006-02-011-1/+1
|
* Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger2006-01-221-1/+0
| | | | is a useless attempt
* Last relocs jump and global data, (even locales) that I could remove are ↵Peter S. Mazinger2006-01-161-0/+6
| | | | gone from libc. The remaining are left as exercise for others ;-)
* make DODEBUG=y happy, update sysdeps/common/* copyrightPeter S. Mazinger2006-01-141-10/+11
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-52/+63
| | | | missing headers, other jump relocs removed
* forgot again about iconvPeter S. Mazinger2006-01-051-1/+1
|
* use internal versions of exit/memcpyPeter S. Mazinger2006-01-041-1/+1
|
* Remove all trailing ; after *_alias and change 2 to use weak_alias instead ↵Peter S. Mazinger2005-12-161-8/+2
| | | | of __attribute__ ...
* memmove, exit are external iconv_mainPeter S. Mazinger2005-12-161-2/+2
|
* New regex as wellPeter S. Mazinger2005-12-161-1/+2
|
* Hide C and wchar related stuffPeter S. Mazinger2005-12-161-2/+2
|
* Remove fread/fwrite/vfprintf redefines, the only user is iconv, being an ↵Peter S. Mazinger2005-12-101-4/+0
| | | | external app
* Switch fread/fwrite/fclose/pipe/sigsetmask usersPeter S. Mazinger2005-12-101-0/+2
|
* Implement hidden poll, switch user to hidden *printf/*scanf/pollPeter S. Mazinger2005-12-091-0/+2
|
* Correct typo, iconv binary does not use the internal versionsPeter S. Mazinger2005-12-061-2/+2
|
* Make use internal str*casecmp/wcscollPeter S. Mazinger2005-12-061-2/+2
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-4/+2
|
* Hiding againPeter S. Mazinger2005-11-291-14/+18
|
* Create and hide __btowc, __mbrtowc, __wcrtombPeter S. Mazinger2005-11-281-6/+16
|
* Hide some of mem* and str*Peter S. Mazinger2005-11-271-0/+2
|
* Hide some morePeter S. Mazinger2005-11-211-6/+6
|
* weaks moved after the related function so gcc4 won't warnPeter S. Mazinger2005-09-221-11/+11
|
* New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III2004-02-111-18/+23
| | | | | | | | Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
* _wchar_utf8sntowcs and _wchar_wcsntoutf8s now set errno if EILSEQ.Manuel Novoa III2003-08-181-0/+7
|
* Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III2003-08-011-35/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should be standards compliant and with several optional features, including support for hexadecimal float notation, locale awareness, glibc-like locale-specific digit grouping with the `'' flag, and positional arg support. I tested it pretty well (finding several bugs in glibc's scanf in the process), but it is brand new so be aware. The *wprintf functions now support floating point output. Also, a couple of bugs were squashed. Finally, %a/%A conversions are now implemented. Implement the glibc xlocale interface for thread-specific locale support. Also add the various *_l(args, locale_t loc_arg) funcs. NOTE!!! setlocale() is NOT threadsafe! NOTE!!! The strto{floating point} conversion functions are now locale aware. The also now support hexadecimal floating point notation. Add the wcsto{floating point} conversion functions. Fix a bug in mktime() related to dst. Note that unlike glibc's mktime, uClibc's version always normalizes the struct tm before attempting to determine the correct dst setting if tm_isdst == -1 on entry. Add a stub version of the libintl functions. (untested) Fixed a known memory leak in setlocale() related to the collation data. Add lots of new config options (which Erik agreed to sort out :-), including finally exposing some of the stripped down stdio configs. Be careful with those though, as they haven't been tested in a long time. (temporary) GOTCHAs... The ctype functions are currently incorrect for 8-bit locales. They will be fixed shortly. The ctype functions are now table-based, resulting in larger staticly linked binaries. I'll be adding an option to use the old approach in the stub locale configuration.
* Oops.. left in a bit of debugging code.Manuel Novoa III2002-11-231-2/+0
|
* Ok... here's the summary:Manuel Novoa III2002-11-221-34/+624
| | | | | | | | | | | | | | Hopefully locale support will build when cross compiling now. Collation is still not supported, but that's what I'm currently working on. In the next couple of days, I'll probably put up a couple of files for download that will save people the trouble of generating all the glibc locales. Added *wprintf functions, although they currently don't support floating point. That will be fixed when I rewrite _dtostr... or possibly before. Added the wcsto{inttype} functions. Added iconv() and a mini iconv utility. The require locale support and only provide for conversions involving the various unicode encodings { UCS-4*, UCS-2*, UTF-32*, UTF-16*, UTF-8 }, the 8-bit codesets built with the locale data, and the internal WCHAR_T.
* Add wcwidth and wcswidth, based on Markus Kuhn's wcwidth of 2002-05-08.Manuel Novoa III2002-11-081-0/+253
| | | | | | Added some size/speed optimizations and integrated it into my locale framework. Minimally tested at the moment, but the stub C-locale version (which most people would probably be using) should be fine.
* Forgot to change btowc and wctob when I changed the wc<->mb functions yesterday.Manuel Novoa III2002-11-051-9/+25
|