diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-06 06:18:38 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-06 06:18:38 +0000 |
commit | e8dde46b6064c07e2b11a42046e2948bcbc2dd06 (patch) | |
tree | 177ff208b84602b305071d32d747d17bdad3662b /enc/unicode.c | |
parent | b217dc81f3e08207a381b9c7cdb86d4909c579e6 (diff) | |
download | ruby-e8dde46b6064c07e2b11a42046e2948bcbc2dd06.tar.gz |
* test/ruby/enc/test_regex_casefold.rb: Added data-based testing for
String#downcase :fold.
* enc/unicode.c: Fixed a range error (lowest non-ASCII character affected
by case operations is U+00B5, MICRO SIGN)
* test/ruby/enc/test_case_mapping.rb: Explicit test for case folding of
MICRO SIGN to Greek mu.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
-rw-r--r-- | enc/unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/unicode.c b/enc/unicode.c index cb9b0a94b4..99dc6dc0d3 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -645,7 +645,7 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, } } } - else if (!(flags&ONIGENC_CASE_ASCII_ONLY) && code>=0x00C0) { /* deal with non-ASCII; nothing relevant below U+00C0 */ + else if (!(flags&ONIGENC_CASE_ASCII_ONLY) && code>=0x00B5) { /* deal with non-ASCII; micron sign (U+00B5) is lowest affected */ const CodePointList3 *folded; if (code==0x0130) { |