If not using utf8 print "?" for values above 255
authorBill Lash <william.lash@gmail.com>
Thu, 23 May 2019 03:01:15 +0000 (22:01 -0500)
committerDavid Griffith <dave@661.org>
Mon, 27 May 2019 02:32:11 +0000 (19:32 -0700)
src/common/text.c

index f7faf277f03961bbd85d035008084aa8c26e189a..6768e04eea4e220f5cdb3de03b940092fd520cdb 100644 (file)
@@ -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;