diff options
author | Karl Williamson <khw@khw-desktop.(none)> | 2010-05-14 08:56:46 -0600 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-05-26 16:12:36 +0200 |
commit | a6f87d8c282ba94b0308898be052d1ac956d0ea9 (patch) | |
tree | 153740c5d3c976a1a93502a70c46e23c954cd951 /utf8.c | |
parent | 8a38a8369536df0f4eac69e5a26e9b86f9123d1d (diff) | |
download | perl-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |