diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2019-08-07 09:32:54 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2019-08-07 09:32:54 +0200 |
commit | 1fb4b2b100d76cfa362cd021760b7cc0038cf55d (patch) | |
tree | 2443bfdda69965757d8ce335cda1a28bb7327834 /src/gb18030.c | |
parent | b134093d75235a90f09ff591137aed9dbdad6e89 (diff) | |
parent | 40f3d0030e6e98bcb02d6523e5ee48497dec49a6 (diff) |
Update upstream source from tag 'upstream/6.9.3'
Update to upstream version '6.9.3'
with Debian dir 0b54db06b48ebf22a6090f21e4dcc045a1085e11
Diffstat (limited to 'src/gb18030.c')
-rw-r--r-- | src/gb18030.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gb18030.c b/src/gb18030.c index 7654432..8d415b0 100644 --- a/src/gb18030.c +++ b/src/gb18030.c @@ -2,7 +2,7 @@ gb18030.c - Oniguruma (regular expression library) **********************************************************************/ /*- - * Copyright (c) 2005-2018 KUBO Takehiro <kubo AT jiubao DOT org> + * Copyright (c) 2005-2019 KUBO Takehiro <kubo AT jiubao DOT org> * K.Kosako <sndgk393 AT ybb DOT ne DOT jp> * All rights reserved. * @@ -67,11 +67,11 @@ gb18030_mbc_enc_len(const UChar* p) { if (GB18030_MAP[*p] != CM) return 1; + p++; if (GB18030_MAP[*p] == C4) return 4; - if (GB18030_MAP[*p] == C1) - return 1; /* illegal sequence */ + return 2; } |