ruby-changes:41666
From: duerst <ko1@a...>
Date: Thu, 4 Feb 2016 21:05:24 +0900 (JST)
Subject: [ruby-changes:41666] duerst:r53740 (trunk): * enc/unicode.c: Activated :ascii flag for ASCII-only case conversion
duerst 2016-02-04 21:05:23 +0900 (Thu, 04 Feb 2016) New Revision: 53740 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53740 Log: * enc/unicode.c: Activated :ascii flag for ASCII-only case conversion (with Kimihito Matsui) Modified files: trunk/ChangeLog trunk/enc/unicode.c Index: ChangeLog =================================================================== --- ChangeLog (revision 53739) +++ ChangeLog (revision 53740) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Feb 4 21:05:17 2016 Martin Duerst <duerst@i...> + + * enc/unicode.c: Activated :ascii flag for ASCII-only case conversion + (with Kimihito Matsui) + Thu Feb 4 17:38:01 2016 Nobuyoshi Nakada <nobu@r...> * re.c (reg_set_source): make source string frozen without Index: enc/unicode.c =================================================================== --- enc/unicode.c (revision 53739) +++ enc/unicode.c (revision 53740) @@ -645,7 +645,7 @@ onigenc_unicode_case_map(OnigCaseFoldTyp https://github.com/ruby/ruby/blob/trunk/enc/unicode.c#L645 } } } - 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/