summaryrefslogtreecommitdiff
path: root/src/euc_tw.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-07-12 09:18:45 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-07-12 09:18:45 +0200
commited7b90269a529d90d151969348e55347fae02c0d (patch)
tree7c72e5a49112a844a53a2c10ef1fda47867aee92 /src/euc_tw.c
parent6cac1738b6aebf75b29d225775030d291319f9a2 (diff)
parent5c29b174a11e992dac68553f08645fe4a825c315 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/euc_tw.c')
-rw-r--r--src/euc_tw.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/euc_tw.c b/src/euc_tw.c
index 7683336..c9acaf1 100644
--- a/src/euc_tw.c
+++ b/src/euc_tw.c
@@ -63,27 +63,27 @@ is_valid_mbc_string(const UChar* p, const UChar* end)
}
else if (*p < 0xa1) {
if (*p == 0x8e) {
- p++;
- if (p >= end) return FALSE;
- if (*p < 0xa1 || *p > 0xb0) return FALSE;
- p++;
- if (p >= end) return FALSE;
- if (*p < 0xa1 || *p == 0xff)
- return FALSE;
- p++;
- if (p >= end) return FALSE;
- if (*p < 0xa1 || *p == 0xff)
- return FALSE;
- p++;
+ p++;
+ if (p >= end) return FALSE;
+ if (*p < 0xa1 || *p > 0xb0) return FALSE;
+ p++;
+ if (p >= end) return FALSE;
+ if (*p < 0xa1 || *p == 0xff)
+ return FALSE;
+ p++;
+ if (p >= end) return FALSE;
+ if (*p < 0xa1 || *p == 0xff)
+ return FALSE;
+ p++;
}
else
- return FALSE;
+ return FALSE;
}
else if (*p < 0xff) {
p++;
if (p >= end) return FALSE;
if (*p < 0xa1 || *p == 0xff)
- return FALSE;
+ return FALSE;
p++;
}
else