From: Jean Privat Date: Thu, 10 May 2018 22:46:06 +0000 (-0400) Subject: Merge: lib/core: provide default codec-aware read_char X-Git-Url: http://nitlanguage.org Merge: lib/core: provide default codec-aware read_char Previous implementations of read_char were unaware of codec issues, and used to read a byte and convert it to a code point. For ASCII characters this was enough, but once unicode characters were read on a char-by-char basis, wrong characters would appear. This commit fixes this issue by using the Codec API to read a character intelligently, and properly support multibyte encodings. Signed-off-by: Lucas Bajolet Pull-Request: #2648 Reviewed-by: Jean Privat --- f54946a02882c88d74808c427f851b66d796b0f1