From b658249cef3c0032be91e499dfc04cd00642d354 Mon Sep 17 00:00:00 2001 From: duerst Date: Thu, 4 Feb 2016 12:05:23 +0000 Subject: [PATCH] * enc/unicode.c: Activated :ascii flag for ASCII-only case conversion (with Kimihito Matsui) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ enc/unicode.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9e20a439d4..c826825a60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 4 21:05:17 2016 Martin Duerst + + * enc/unicode.c: Activated :ascii flag for ASCII-only case conversion + (with Kimihito Matsui) + Thu Feb 4 17:38:01 2016 Nobuyoshi Nakada * re.c (reg_set_source): make source string frozen without diff --git a/enc/unicode.c b/enc/unicode.c index 6866285d9f..3f41ea3844 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -645,7 +645,7 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, } } } - else if (code>=0x00C0) { /* deal with non-ASCII; nothing relevant below U+00C0 */ + else if (!(flags&ONIGENC_CASE_ASCII_ONLY) && code>=0x00C0) { /* deal with non-ASCII; nothing relevant below U+00C0 */ if (code==0x0130) { if (flags&ONIGENC_CASE_DOWNCASE) { if (flags&ONIGENC_CASE_FOLD_TURKISH_AZERI)