[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#603914: Please drop non-UTF8 locales



Roger Leigh dixit:

>From my reading of the standards a UTF-8 C locale would be required
>to behave identically to the existing ASCII C locale:
>
>• will consider all byte sequences valid

I think it wouldn’t (since UTF-8 mbrtowc/wcrtomb don’t work
this way, and it can’t be done with “just” the POSIX API
anyway because they aren’t allowed to not read any input
byte when outputting (in MirBSD, I’ve added a sister func-
tion to mbrtowc which can do that), so not everything can
be accepted in all situations.

bye,
//mirabilos
-- 
  “Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool.”
						-- Edward Burr



Reply to: