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.