News for hackers. Stuff that matters.
Re:Tell HN: C Experts Panel – Ask us anything about C by hsivonen on Tuesday April 14, 2020 @11:46AM (#22867401)
What’s the current committee thinking on providing locale-independent conversions from potentially-invalid UTF-8 to valid UTF-8, from potentially-invalid UTF-8 to valid UTF-16, and from potentially-invalid UTF-16 to valid UTF-8 (i.e. replacing ill-formed sequences with yhe REPLACEMENT CHARACTER)?
Re:Tell HN: C Experts Panel – Ask us anything about C by DougGwyn on Tuesday April 14, 2020 @06:10PM (#22872109)
If you changed UTF-16 to UTF-32 or UCS-4 I'd support it. I think there are already implementations that use the replacement character for all "impossible" codes.
Re:Tell HN: C Experts Panel – Ask us anything about C by hsivonen on Wednesday April 15, 2020 @04:36PM (#22882716)
What’s your use case for UTF-32?
Re:Tell HN: C Experts Panel – Ask us anything about C by DougGwyn on Thursday April 16, 2020 @07:12PM (#22894543)
There are several multibyte character manipulations that are easier if there is a uniform-sized encoding (wchar_t).