Re: [dev] [PATCH] Replace character with U+FFFD if wcwidth() is -1

From: FRIGN <dev_AT_frign.de>
Date: Tue, 28 Oct 2014 15:18:51 +0100

On Tue, 28 Oct 2014 11:11:03 -0300
dequis <dx_AT_dxzone.com.ar> wrote:

> In practice, this only makes things worse by not displaying characters
> that are perfectly supported by fontconfig and xft, but not by libc.
> But... whatever.

It's your own fault when you use the broken glibc. File a bug-report
and wait for them to fix it.
Displaying the INVALID-character is imho the best compromise. The
graphics don't glitch out and we don't blindly assume something.

As soon as glibc gets its shit together, it will work. Strict
error-checking and blindly accepting return values and not
interpreting them in some weird context is often the best way
to go.
Don't think about it, just catch it well.

Cheers

FRIGN

-- 
FRIGN <dev_AT_frign.de>
Received on Tue Oct 28 2014 - 15:18:51 CET

This archive was generated by hypermail 2.3.0 : Tue Oct 28 2014 - 15:24:08 CET