From 8f0b58d36addb9466f58e692df69e568c7fdd72a Mon Sep 17 00:00:00 2001 From: duerst Date: Sun, 10 Jul 2016 10:33:51 +0000 Subject: * test/ruby/enc/test_case_comprehensive.rb: Changed testing logic in to catch unintended modifications of characters that do not have a case equivalent in the respective encoding. * enc/iso_8859_1.c, enc/iso_8859_15.c: Fixed unintended modifications of micro sign and y with diaeresis. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enc/iso_8859_15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'enc/iso_8859_15.c') diff --git a/enc/iso_8859_15.c b/enc/iso_8859_15.c index 066a08c9fb..5180383331 100644 --- a/enc/iso_8859_15.c +++ b/enc/iso_8859_15.c @@ -244,7 +244,7 @@ case_map (OnigCaseFoldType* flagP, const OnigUChar** pp, code = 's'; } } - else if (code==0xAA || code==0xBA) ; + else if (code==0xAA || code==0xBA || code==0xB5) ; else if ((EncISO_8859_15_CtypeTable[code] & BIT_CTYPE_UPPER) && (flags & (ONIGENC_CASE_DOWNCASE|ONIGENC_CASE_FOLD))) { flags |= ONIGENC_CASE_MODIFIED; -- cgit v1.2.3