summaryrefslogtreecommitdiff
path: root/enc/iso_8859_1.c
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-10 10:33:51 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-10 10:33:51 +0000
commit8f0b58d36addb9466f58e692df69e568c7fdd72a (patch)
tree7dc78a951a4d65a34a71a9e111ad6d3c4eab5a28 /enc/iso_8859_1.c
parent40a34feb4cf7150539708d2de34b4ec883931be3 (diff)
* 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
Diffstat (limited to 'enc/iso_8859_1.c')
-rw-r--r--enc/iso_8859_1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/iso_8859_1.c b/enc/iso_8859_1.c
index d12a8df..ad3d4a5 100644
--- a/enc/iso_8859_1.c
+++ b/enc/iso_8859_1.c
@@ -279,7 +279,7 @@ case_map (OnigCaseFoldType* flagP, const OnigUChar** pp,
code = 's';
}
}
- else if (code==0xAA || code==0xBA) ;
+ else if (code==0xAA || code==0xBA || code==0xB5 || code==0xFF) ;
else if ((EncISO_8859_1_CtypeTable[code] & BIT_CTYPE_UPPER)
&& (flags & (ONIGENC_CASE_DOWNCASE|ONIGENC_CASE_FOLD))) {
flags |= ONIGENC_CASE_MODIFIED;