On Mon, May 29, 2017 at 05:59:34PM +0200, Ingo Schwarze wrote: > So handling multi-byte "r" should probably be treated as a separate > issue. >
I'm just a beginner with C, what I'm about to say is purely intuitive. As far as I can understand you're trying to adapt the code that works with ascii to handle utf-8, what requires to *guess* how to deal with the next character the user will type at any time. Are those wide char versions of C functions consistent enough to write a separate implementation to be loaded when LC_TYPE is set to utf-8? If I'm telling nonsense just ignore me. :)
