summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-09-06 14:33:06 +0000
committerSteve Peters <steve@fisharerojo.org>2006-09-06 14:33:06 +0000
commite8a70c6f06776f8dc521036f63b8c13ae18d2746 (patch)
tree6b6222cd16f8c9e28b90b5264ec0d0f867612323 /regexec.c
parent3fb99e37f6be62b46fe5d186e325abae91936ba9 (diff)
downloadperl-e8a70c6f06776f8dc521036f63b8c13ae18d2746.tar.gz
Removed some leftover debugging accidentally added with
change #28788. p4raw-link: @28788 on //depot/perl: 98fbe98930ddfea1c62d93ddeb877f51263c4d25 p4raw-id: //depot/perl@28792
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/regexec.c b/regexec.c
index a94625e1b0..d82b135f57 100644
--- a/regexec.c
+++ b/regexec.c
@@ -4944,15 +4944,8 @@ S_reginclass(pTHX_ const regexp *prog, register const regnode *n, register const
c = utf8n_to_uvchr(p, UTF8_MAXBYTES, &len,
(UTF8_ALLOW_DEFAULT & UTF8_ALLOW_ANYUV) | UTF8_CHECK_ONLY);
/* see [perl #37836] for UTF8_ALLOW_ANYUV */
- if (len == (STRLEN)-1) {
- int i;
- PerlIO_printf(Perl_debug_log, "utf8: ");
- for (i = 0; i < 4; i++)
- PerlIO_printf(Perl_debug_log, "\\x%02x", p[i]);
- PerlIO_printf(Perl_debug_log, "\n");
- Perl_warner(aTHX_ packWARN(WARN_REGEXP), "Malformed UTF-8 character");
- /* Perl_croak(aTHX_ "Malformed UTF-8 character (fatal)"); */
- }
+ if (len == (STRLEN)-1)
+ Perl_croak(aTHX_ "Malformed UTF-8 character (fatal)");
}
plen = lenp ? *lenp : UNISKIP(NATIVE_TO_UNI(c));