summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2000-11-13 06:49:40 -0800
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-14 01:13:54 +0000
commitcc366d4bfec1d12643c0fb8ca45074934bcc46bb (patch)
tree4cea6dddce3edc7f288719bc10bd012e88a2c072 /utf8.h
parent54d9745e6c10264c5b7e27933a7a229432a2760e (diff)
downloadperl-cc366d4bfec1d12643c0fb8ca45074934bcc46bb.tar.gz
[ID 20001113.003] utf8_to_uv on malformed utf returns wrong values
Message-Id: <200011132249.eADMnek09679@garcia.efn.org> p4raw-id: //depot/perl@7677
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index dc93e95aa9..269ad3e8a7 100644
--- a/utf8.h
+++ b/utf8.h
@@ -41,6 +41,8 @@ END_EXTERN_C
#define UTF8_ALLOW_BOM 0x0020
#define UTF8_ALLOW_FFFF 0x0040
#define UTF8_ALLOW_LONG 0x0080
+#define UTF8_ALLOW_ANYUV (UTF8_ALLOW_FE_FF|UTF8_ALLOW_FFFF \
+ |UTF8_ALLOW_BOM|UTF8_ALLOW_SURROGATE)
#define UTF8_ALLOW_ANY 0x00ff
#define UTF8_CHECK_ONLY 0x0100