From 3a114155077768d3542ce012605e78b10a0cc6b2 Mon Sep 17 00:00:00 2001 From: drkameleon Date: Wed, 11 Jan 2023 17:00:40 +0100 Subject: [PATCH] REGRESSION: remove UTF-8 support (like before) until we manage to properly fix it --- src/extras/linenoise.nim | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/extras/linenoise.nim b/src/extras/linenoise.nim index 2437e62266..470fff65ab 100644 --- a/src/extras/linenoise.nim +++ b/src/extras/linenoise.nim @@ -21,9 +21,15 @@ import os {.passC: "-I" & parentDir(currentSourcePath()) .} -{.compile("linenoise/linenoise.c", "-DUSE_UTF8 -I" & parentDir(currentSourcePath())).} -{.compile("linenoise/stringbuf.c", "-DUSE_UTF8 -I" & parentDir(currentSourcePath())).} -{.compile("linenoise/utf8.c", "-DUSE_UTF8 -I" & parentDir(currentSourcePath())).} +# TODO(extras/linenoise) UTF-8 support not working properly +# should add -DUSE_UTF8 for UTF-8 support +# to all following lines +# the problem is that - although it "works" - different characters are not shown at all: +# e.g. accented characters, or ΓΈ - our symbol for null +# labels: bug, 3rd-party, repl +{.compile("linenoise/linenoise.c", "-I" & parentDir(currentSourcePath())).} +{.compile("linenoise/stringbuf.c", "-I" & parentDir(currentSourcePath())).} +{.compile("linenoise/utf8.c", "-I" & parentDir(currentSourcePath())).} #======================================= # Types