summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/mbtowc.c
Commit message (Collapse)AuthorAgeFilesLines
* mbtowc(3): set errno to EILSEQ if an incomplete character is passed.pfg2016-03-011-2/+9
| | | | | | | | | | | According to POSIX, The mbtowc() function shall fail if: [EILSEQ] An invalid character sequence is detected. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D5496 Obtained from: OpenBSD (Ingo Schwarze) MFC after: 1 month
* Implement xlocale APIs from Darwin, mainly for use by libc++. This adds atheraven2011-11-201-4/+14
| | | | | | | | | | | | load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation. Please test any code you have that uses the C standard locale functions! Reviewed by: das (gdtoa changes) Approved by: dim (mentor)
* Remove unnecessary #include directives.tjr2004-07-291-3/+0
|
* Remove useless checks for characters longer than INT_MAX bytes.tjr2004-07-291-4/+0
|
* Reduce overhead by calling internal versions of the multibyte conversiontjr2004-05-121-1/+2
| | | | functions directly wherever possible.
* Prepare to handle state-dependent encodings. This mainly involves nottjr2004-04-061-8/+7
| | | | | taking shortcuts when it comes to storing and passing around conversion states.
* Implement mbtowc() in terms of mbrtowc(), and wctomb() in terms of wcrtomb().tjr2003-08-071-24/+20
|
* Handle boundary cases more correctly; mblen(s, 0) and mbtowc(NULL, s, 0)tjr2002-10-281-4/+3
| | | | | | | return -1 regardless of what s points to, mbtowc(&w, s, 1) sets w to a null wide character when s points to a null byte. This seems to be closer to what most other implementations do, but the C99 standard contradicts itself for these cases.
* Style sweep.tjr2002-10-271-8/+6
|
* Style: One space between "restrict" qualifier and "*".tjr2002-09-061-2/+2
|
* Set errno to EILSEQ when invalid multibyte sequences are detectedtjr2002-09-031-1/+4
| | | | (XSI extension to 1003.1-2001).
* Add restrict qualifiers to the arguments of mbstowcs, mbtowc() andtjr2002-09-011-2/+2
| | | | wcstombs().
* Split ansi.c into a separate source file for each function.tjr2002-08-311-0/+61
OpenPOWER on IntegriCloud