diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2021-04-26 17:40:21 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2021-04-26 17:40:21 +0200 |
commit | d3a83c35311ec631a46b59b66c38ef8d3a2a629a (patch) | |
tree | 28fc4dd524fa29f712020b61e565ab47b1fefd8e /src/iso8859_3.c | |
parent | 77a04959299aa252579a98655e626d1b8f5f9f34 (diff) | |
parent | 98f7065a3f7b386564840bb5b24b94f9335b2e97 (diff) |
Update upstream source from tag 'upstream/6.9.7.1'
Update to upstream version '6.9.7.1'
with Debian dir c2c92e088b7e91033d7f5bee51ac7827148eaf4b
Diffstat (limited to 'src/iso8859_3.c')
-rw-r--r-- | src/iso8859_3.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/iso8859_3.c b/src/iso8859_3.c index 49dc6b2..69b96fd 100644 --- a/src/iso8859_3.c +++ b/src/iso8859_3.c @@ -2,7 +2,7 @@ iso8859_3.c - Oniguruma (regular expression library) **********************************************************************/ /*- - * Copyright (c) 2002-2019 K.Kosako + * Copyright (c) 2002-2020 K.Kosako * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -116,7 +116,11 @@ mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, return 2; } - *lower = ENC_ISO_8859_3_TO_LOWER_CASE(*p); + if (CASE_FOLD_IS_NOT_ASCII_ONLY(flag) || ONIGENC_IS_ASCII_CODE(*p)) + *lower = ENC_ISO_8859_3_TO_LOWER_CASE(*p); + else + *lower = *p; + (*pp)++; return 1; } |