summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-03-12 21:00:13 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-03-12 21:00:13 +0000
commit03cfe0aec1e921aae8754172fe1982455c07ce69 (patch)
tree91058c1d54edc3fdd5d8a8cc22fe8b3d7e82e73c /utf8.h
parent5e12f4fbf2391bc262df1da61c1745c66dc76d71 (diff)
downloadperl-03cfe0aec1e921aae8754172fe1982455c07ce69.tar.gz
#ifdef'ed out code for 'USE_BYTES_DOWNGRADES' case.
p4raw-id: //depot/perlio@9110
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index 3f17578290..160e5d24a3 100644
--- a/utf8.h
+++ b/utf8.h
@@ -31,7 +31,11 @@ END_EXTERN_C
/* #define IN_UTF8 (PL_curcop->op_private & HINT_UTF8) */
#define IN_BYTE (PL_curcop->op_private & HINT_BYTE)
+#ifdef USE_BYTES_DOWNGRADES
+#define DO_UTF8(sv) (SvUTF8(sv) && !(IN_BYTE && sv_utf8_downgrade(sv,0)))
+#else
#define DO_UTF8(sv) (SvUTF8(sv) && !IN_BYTE)
+#endif
#define UTF8_ALLOW_EMPTY 0x0001
#define UTF8_ALLOW_CONTINUATION 0x0002