summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2010-05-14 08:56:46 -0600
committerRafael Garcia-Suarez <rgs@consttype.org>2010-05-26 16:12:36 +0200
commita6f87d8c282ba94b0308898be052d1ac956d0ea9 (patch)
tree153740c5d3c976a1a93502a70c46e23c954cd951 /utf8.c
parent8a38a8369536df0f4eac69e5a26e9b86f9123d1d (diff)
downloadperl-a6f87d8c282ba94b0308898be052d1ac956d0ea9.tar.gz
PATCH: user defined special casing for non utf8
Users can define their own case changing mappings to replace the standard ones. Prior to this patch, any mappings on characters whose ordinals are 0-222, 224-255 that resulted in multiple characters were ignored. Note that there still is a deficiency in that the mappings will be applied only to strings in utf8 format.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index 1a6077c8d2..eeea1582b8 100644
--- a/utf8.c
+++ b/utf8.c
@@ -1653,8 +1653,7 @@ Perl_to_utf8_case(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp,
}
}*/
- /* The 0xDF is the only special casing Unicode code point below 0x100. */
- if (special && (uv1 == 0xDF || uv1 > 0xFF)) {
+ if (special) {
/* It might be "special" (sometimes, but not always,
* a multicharacter mapping) */
HV * const hv = get_hv(special, 0);