43 Commits (0572555dab1d1e10b5f7351a005ec588cab41e25)

Author SHA1 Message Date
Rich Felker 23febbd3c5 align mbsnrtowcs behavior on partial character with new requirements 1 year ago
Alexey Izbyshev 4653b98711 mbrtowc: Fix wrong return value when n > UINT_MAX 3 years ago
Rich Felker 3ab2a4e026 rewrite wcsnrtombs to fix buffer overflow and other bugs 6 years ago
Rich Felker 716745e00e fix aliasing-based undefined behavior in mbsrtowcs 7 years ago
Rich Felker 5ce3737931 reduce spurious inclusion of libc.h 8 years ago
Rich Felker 9b95fd0944 define and use internal macros for hidden visibility, weak refs 8 years ago
Rich Felker 39db00afad fix erroneous acceptance of f4 9x xx xx code sequences by utf-8 decoder 9 years ago
Rich Felker 11ddc314b5 fix erroneous stop before input limit in mbsnrtowcs and wcsnrtombs 9 years ago
Rich Felker 6cec7bc57f remove comments on copyright status from UTF-8 implementation files 10 years ago
Michael Meeuwisse 6e694d6960 explicitly include stdio.h to get EOF definition needed by wctob 10 years ago
Rich Felker fe7582f4f9 fix undefined left-shift of negative values in utf-8 state table 11 years ago
Rich Felker 1507ebf837 byte-based C locale, phase 1: multibyte character handling functions 11 years ago
Rich Felker 38e2f72723 fix btowc corner case 11 years ago
Rich Felker 9d836f444f remove libc.h dependency from otherwise-independent multibyte code 11 years ago
Rich Felker f9cccfc16e remove cruft for libc struct accessor function and broken visibility 11 years ago
Rich Felker 2e1ae3b6b9 fix return value computation in one code path of wcsnrtombs 12 years ago
Jens Gustedt 941644e98c implement a private state for the uchar.h functions 12 years ago
Rich Felker ab9672ae73 implement uchar.h (C11 UTF-16/32 conversion) interfaces 12 years ago
Rich Felker e89cfe51d2 fix aliasing violations in mbtowc and mbrtowc 12 years ago
Rich Felker 8fba4458af fix incorrect end pointer in some cases when wcsrtombs stops early 12 years ago
Szabolcs Nagy 571744447c include cleanups: remove unused headers and add feature test macros 13 years ago
Rich Felker 211264e46a fix buffer overflow in mbsrtowcs 13 years ago
Rich Felker 4ca442157e fix failure of mbsrtowcs to record stop position when dest is full 13 years ago
Rich Felker 23ab8c2555 mbrtowc: do not leave mbstate_t in permanent-fail state after EILSEQ 13 years ago
Rich Felker ea34b1b90c implement mbtowc directly, not as a wrapper for mbrtowc 13 years ago
Rich Felker a49e038bab optimize mbrtowc 13 years ago
Rich Felker 8f06ab0eb9 fix out-of-bounds access in UTF-8 decoding 13 years ago
Rich Felker 771c6cead0 cleanup wcstombs 13 years ago
Rich Felker b5a527f9ff cleanup mbstowcs wrapper 13 years ago
Rich Felker f62b12d051 minor optimization to mbstowcs 13 years ago
Rich Felker 40b2b5fa94 fix incorrect range checks in wcsrtombs 13 years ago
Rich Felker 50d9661d9b overhaul mbsrtowcs 13 years ago
Rich Felker 400c5e5c83 use restrict everywhere it's required by c99 and/or posix 2008 14 years ago
Rich Felker 6436b371af fix failure of mbsinit(0) (not UB; required to return nonzero) 14 years ago
Rich Felker 485fb14ab4 fix longstanding exit logic bugs in mbsnrtowcs and wcsnrtombs 14 years ago
Rich Felker 78e79d9d50 new attempt at working around the gcc 3 visibility bug 14 years ago
Rich Felker 7fa29920ed remove useless attribute visibility from definitions 14 years ago
Rich Felker bae2e52bfd cleanup and work around visibility bug in gcc 3 that affects x86_64 14 years ago
Rich Felker 9ae8d5fc71 fix all implicit conversion between signed/unsigned pointers 15 years ago
Rich Felker 015d33c507 cleanup utf-8 multibyte code, use visibility if possible 15 years ago
Rich Felker cfcbea1e43 remove sample utf-8 code that's not part of the standard library 15 years ago
Rich Felker f9d880d258 cleanup multibyte stuff to remove ugly casts, sanitize the ptr align casts 15 years ago
Rich Felker 0b44a0315b initial check-in, version 0.5.0 15 years ago