summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-12-19 11:00:49 -0700
committerKarl Williamson <public@khwilliamson.com>2010-12-19 20:21:54 -0700
commit681f01c2a5ff0846090d78599b3d4caeb93fda26 (patch)
tree4fd5f0632dfb363f432dc734a6c9f5e9cb654b15 /perl.h
parentc8536afa2abc39d901062df19a839a4209513974 (diff)
downloadperl-681f01c2a5ff0846090d78599b3d4caeb93fda26.tar.gz
pv_escape: Add option to dump all non-ascii as hex
This patch adds an option to pv_escape() to dump all characters above ASCII in hex. Before, you could get all chars as hex or the Latin1 non-ASCII as octal, whereas the typical values for these that people think in are given in hex.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 151e7bd063..40e0dd3c01 100644
--- a/perl.h
+++ b/perl.h
@@ -6159,6 +6159,7 @@ extern void moncontrol(int);
#define PERL_PV_ESCAPE_UNI 0x0100
#define PERL_PV_ESCAPE_UNI_DETECT 0x0200
+#define PERL_PV_ESCAPE_NONASCII 0x0400
#define PERL_PV_ESCAPE_ALL 0x1000
#define PERL_PV_ESCAPE_NOBACKSLASH 0x2000