summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-08-12 23:24:18 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-12 23:24:18 +0000
commit39e02b423749ca43aca0385eea6257ecde9aee92 (patch)
tree1a15ab05dce6398db23bfa3bfabcf204efce905c /utf8.h
parent68de02dd13dd306ab38a3120f53d4d0e47862ec5 (diff)
downloadperl-39e02b423749ca43aca0385eea6257ecde9aee92.tar.gz
If you want you can now add -DUSE_UTF8_SCRIPTS to your cflags
and the Perl will be built to do that by default (adding that will break scripts having non-UTF-8 binary data, such as Latin-1.) p4raw-id: //depot/perl@11656
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index b793db612e..c475d0f287 100644
--- a/utf8.h
+++ b/utf8.h
@@ -7,6 +7,15 @@
*
*/
+/* Use UTF-8 as the default script encoding?
+ * Turning this on will break scripts having non-UTF8 binary
+ * data (such as Latin-1) in string literals. */
+#ifdef USE_UTF8_SCRIPTS
+# define USE_UTF8_IN_NAMES (!IN_BYTES)
+#else
+# define USE_UTF8_IN_NAMES (PL_hints & HINT_UTF8)
+#endif
+
#ifdef EBCDIC
/* The equivalent of these macros but implementing UTF-EBCDIC
are in the following header file: