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

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Tue, 28 Oct 2014 21:10:18 +0100

On Tue, Oct 28, 2014 at 02:53:28PM +0100, Dmitrij D. Czarkoff wrote:
> 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. [...]

I think you are right. tputc is called on all input in ttyread() which
means they will have been replaced already at that point if I am not
mistaken.
Received on Tue Oct 28 2014 - 21:10:18 CET

This archive was generated by hypermail 2.3.0 : Tue Oct 28 2014 - 21:12:08 CET