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:
438df43
)
improve z_check_unicode
author
borg323
<4010067-borg323@users.noreply.gitlab.com>
Wed, 22 May 2019 21:06:18 +0000
(
00:06
+0300)
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 0e7edb38ed6e3be30eb223f58e3aa51eec907893..f7faf277f03961bbd85d035008084aa8c26e189a 100644
(file)
--- a/
src/common/text.c
+++ b/
src/common/text.c
@@
-334,11
+334,16
@@
void z_check_unicode (void)
store (3);
else if (c == 0xa0)
store (1);
+#ifndef USE_UTF8
+ else if (c >= 0xa1 && c <= 0xff)
+ store (3);
+#else
else if (c >= 0xa1)
- /* being optimistic, we can print a
nd input
- * a
ll unicode characters
+ /* being optimistic, we can print a
ll unicode characters
+ * a
nd input the ones with zscii representation
*/
- store (3);
+ store ((unicode_to_zscii (c) != 0) ? 3 : 1);
+#endif
else
store (0);