This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Change Debug output of char classes
[perl5.git] / regcomp.c
index b3c66b8..fdd8493 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -15491,12 +15491,7 @@ S_put_byte(pTHX_ SV *sv, int c)
             case '\a': Perl_sv_catpvf(aTHX_ sv, "\\a"); break;
 
             default:
-                if (c < 256) {
-                    Perl_sv_catpvf(aTHX_ sv, "\\x%02x", c);
-                }
-                else {
-                    Perl_sv_catpvf(aTHX_ sv, "\\x{%x}", c);
-                }
+                Perl_sv_catpvf(aTHX_ sv, "\\x{%x}", c);
                 break;
         }
     }