Allow emitting the foldcased version of "\x{df}", "ss"
Jarkko Hietaniemi [Thu, 3 Jan 2002 20:22:48 +0000 (20:22 +0000)]
(among others, another example would be \x{fb00} -> "ff")

p4raw-id: //depot/perl@14046

regcomp.c

index a61d039..cb74043 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -3137,7 +3137,7 @@ tryagain:
                if (ISMULT2(p)) { /* Back off on ?+*. */
                    if (len)
                        p = oldp;
-                   else if (!UNI_IS_INVARIANT(NATIVE_TO_UNI(ender)) && UTF) {
+                   else if (UTF) {
                         if (FOLD) {
                              /* Emit all the Unicode characters. */
                              for (foldbuf = tmpbuf;
@@ -3162,7 +3162,7 @@ tryagain:
                    }
                    break;
                }
-               if (!UNI_IS_INVARIANT(NATIVE_TO_UNI(ender)) && UTF) {
+               if (UTF) {
                     if (FOLD) {
                          /* Emit all the Unicode characters. */
                          for (foldbuf = tmpbuf;