diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2021-04-26 22:25:42 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2021-04-26 22:25:42 +0200 |
commit | 5d5f76cad47d13dc0dd4328c2172ddc1d4b19d7b (patch) | |
tree | cd59a8ea003d6768af284fc913353983e2794a58 /src/iso8859_16.c | |
parent | eac65ba44805c402f894b700b602c2e891f92a84 (diff) | |
parent | 96b0c9871630512ec2c2e84072da0085d68d740f (diff) |
Merge branch 'release/debian/6.9.7.1-1'debian/6.9.7.1-1
Diffstat (limited to 'src/iso8859_16.c')
-rw-r--r-- | src/iso8859_16.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/iso8859_16.c b/src/iso8859_16.c index 22a653a..bfd0a5b 100644 --- a/src/iso8859_16.c +++ b/src/iso8859_16.c @@ -2,7 +2,7 @@ iso8859_16.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, return 2; } - *lower = ENC_ISO_8859_16_TO_LOWER_CASE(*p); + if (CASE_FOLD_IS_NOT_ASCII_ONLY(flag) || ONIGENC_IS_ASCII_CODE(*p)) + *lower = ENC_ISO_8859_16_TO_LOWER_CASE(*p); + else + *lower = *p; + (*pp)++; return 1; /* return byte length of converted char to lower */ } |