Re: wctomb() accepts out-of-range character in C-locale
"Jun. T" <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
> 2024/03/26 5:18, [email protected] wrote: > > POSIX says it, so by definition, it's OK! ;^> I think POSIX doesn't say anything about the 8bit part of the C-locale; it just says it can be implementation dependent. It is newlib that choses the implementation in which chars in 0x80-0xff in C-locale correspond to those chars with the same wide-char values (virtually equivalent to latin1). Other system may chose other implementation, I think.