rather than scattering hacks in each program that needs to
output utf8 to the console, how about making something
for libutil that they all can use?

On Sun, 25 Oct 2015, Ted Unangst wrote:

> it only gets deeper and thicker...
> 
> this decodes chars and prints ? for bytes it doesn't like, as well as
> codepoints (128-159) it doesn't like.
> 
> (this is extracted from some old utf8 code i had laying around. it's a bit
> simpler than the stringprep stuff but it seems to handle the case of some
> incorrect sequences correctly. it does allow overlong encodings, but "not my
> problem"?)

Reply via email to