summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2009-11-20 11:02:01 -0700
committerRafael Garcia-Suarez <rgs@consttype.org>2009-11-23 14:17:36 +0100
commit61fc5122f0d8a509834282b8ecb3252d2e4c9f5d (patch)
tree5208ad914b6cd8f923c81ff9517c4b8ca5fcafb3 /utf8.h
parent7f40cf6b25ea33d8a2dbbe1b42267811532b235d (diff)
downloadperl-61fc5122f0d8a509834282b8ecb3252d2e4c9f5d.tar.gz
Make unicode semantics the default
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index 7c205d1523..19f2174274 100644
--- a/utf8.h
+++ b/utf8.h
@@ -207,7 +207,8 @@ encoded character.
#define IN_BYTES (CopHINTS_get(PL_curcop) & HINT_BYTES)
#define DO_UTF8(sv) (SvUTF8(sv) && !IN_BYTES)
-#define IN_UNI_8_BIT (CopHINTS_get(PL_curcop) & HINT_UNI_8_BIT && ! IN_LOCALE_RUNTIME && ! IN_BYTES)
+#define IN_UNI_8_BIT ( (! (CopHINTS_get(PL_curcop) & HINT_NOT_UNI_8_BIT)) \
+ && ! IN_LOCALE_RUNTIME && ! IN_BYTES)
#define UTF8_ALLOW_EMPTY 0x0001
#define UTF8_ALLOW_CONTINUATION 0x0002