Skip to content

Commit

Permalink
REGRESSION: remove UTF-8 support (like before) until we manage to pro…
Browse files Browse the repository at this point in the history
…perly fix it
  • Loading branch information
drkameleon committed Jan 11, 2023
1 parent a56d3a3 commit 3a11415
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/extras/linenoise.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a11415

Please sign in to comment.