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

From: <k0ga_AT_shike2.com>
Date: Tue, 28 Oct 2014 20:32:34 +0100

> Silvan Jegen said:
>> I do agree that this is the right approach. There is however another
>> instance of a wcwidth call on line st.c:3443 that should be handled as
>> well (maybe with abs in that particular case?).
>
> As I get it, by the time wcwidth() is called there, all codepoints libc
> is unaware of are already replaced with U+FFFD. If libc doesn't know
> U+FFFD either, there will be enough problems running st that adding
> workarounds for that case will not make sense.

I also agree. I don't like the idea of assuming that any non recognized
symbol has length of 1. I think this is a door for problems in the future.
I will apply the patch next week.


Regards,
Received on Tue Oct 28 2014 - 20:32:34 CET

This archive was generated by hypermail 2.3.0 : Tue Oct 28 2014 - 20:36:08 CET