Scope-eye.net Git Repository
/
liskon_frotz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d534a0e
)
If not using utf8 print "?" for values above 255
author
Bill Lash
<william.lash@gmail.com>
Thu, 23 May 2019 03:01:15 +0000
(22:01 -0500)
committer
David Griffith
<dave@661.org>
Mon, 27 May 2019 02:32:11 +0000
(19:32 -0700)
src/common/text.c
patch
|
blob
|
history
diff --git
a/src/common/text.c
b/src/common/text.c
index f7faf277f03961bbd85d035008084aa8c26e189a..6768e04eea4e220f5cdb3de03b940092fd520cdb 100644
(file)
--- a/
src/common/text.c
+++ b/
src/common/text.c
@@
-78,8
+78,13
@@
zchar translate_from_zscii (zbyte c)
LOW_WORD (addr, unicode)
+#ifdef USE_UTF8
if (unicode < 0x20)
return '?';
+#else
+ if ((unicode < 0x20) ||(unicode > 0xff))
+ return '?';
+#endif
return unicode;