From: Bill Lash Date: Thu, 23 May 2019 03:01:15 +0000 (-0500) Subject: If not using utf8 print "?" for values above 255 X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=a163211ca736c07f82accdb53ece663df81acef5;p=liskon_frotz.git If not using utf8 print "?" for values above 255 --- diff --git a/src/common/text.c b/src/common/text.c index f7faf27..6768e04 100644 --- 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;