]> granicus.if.org Git - php/commitdiff
Fixed bug #46626 (mb_convert_case does not handle apostrophe correctly)
authorIlia Alshanetsky <iliaa@php.net>
Mon, 24 Nov 2008 21:23:03 +0000 (21:23 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 24 Nov 2008 21:23:03 +0000 (21:23 +0000)
ext/mbstring/php_unicode.c

index d07d278a1daf10b09d2a5527ea1350a2d5907673..4bcce8d02e22792df4c2989f6d8936c10ac5d45e 100644 (file)
@@ -308,7 +308,7 @@ MBSTRING_API char *php_unicode_convert_case(int case_mode, const char *srcstr, s
                        for (i = 0; i < unicode_len; i+=4) {
                                int res = php_unicode_is_prop(
                                        BE_ARY_TO_UINT32(&unicode_ptr[i]),
-                                       UC_MN|UC_ME|UC_CF|UC_LM|UC_SK|UC_LU|UC_LL|UC_LT, 0);
+                                       UC_MN|UC_ME|UC_CF|UC_LM|UC_SK|UC_LU|UC_LL|UC_LT|UC_PO|UC_OS, 0);
                                if (mode) {
                                        if (res) {
                                                UINT32_TO_BE_ARY(&unicode_ptr[i],