hush warnings about malformed EBCDIC text
Peter Prymmer [Tue, 14 Nov 2000 15:09:41 +0000 (07:09 -0800)]
Message-ID: <Pine.OSF.4.10.10011141500260.106218-100000@aspara.forte.com>

p4raw-id: //depot/perl@7695

utf8.c

diff --git a/utf8.c b/utf8.c
index 3cee2c2..f1b80a4 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -192,7 +192,11 @@ Perl_utf8_to_uv(pTHX_ U8* s, STRLEN curlen, STRLEN* retlen, U32 flags)
     dTHR;
     UV uv = *s, ouv;
     STRLEN len = 1;
+#ifdef EBCDIC
+    bool dowarn = 0;
+#else
     bool dowarn = ckWARN_d(WARN_UTF8);
+#endif
     STRLEN expectlen = 0;
     
     if (curlen == 0) {