summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-11-26 14:01:43 -0700
committerKarl Williamson <khw@cpan.org>2014-12-03 13:28:57 -0700
commite5860534bf7ec7cb8c8e4b6211178d1d1369e13d (patch)
tree1a904f7162217698836f1ccd80b1accb6918f161 /dump.c
parent832ecee3c089e94a3cf1f6024c62f415df40f0cd (diff)
downloadperl-e5860534bf7ec7cb8c8e4b6211178d1d1369e13d.tar.gz
dump.c: Clarify pod
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dump.c b/dump.c
index 5f2b07e770..fc98ccd532 100644
--- a/dump.c
+++ b/dump.c
@@ -107,9 +107,9 @@ will also be escaped.
Normally the SV will be cleared before the escaped string is prepared,
but when PERL_PV_ESCAPE_NOCLEAR is set this will not occur.
-If PERL_PV_ESCAPE_UNI is set then the input string is treated as Unicode,
+If PERL_PV_ESCAPE_UNI is set then the input string is treated as UTF-8
if PERL_PV_ESCAPE_UNI_DETECT is set then the input string is scanned
-using C<is_utf8_string()> to determine if it is Unicode.
+using C<is_utf8_string()> to determine if it is UTF-8.
If PERL_PV_ESCAPE_ALL is set then all input chars will be output
using C<\x01F1> style escapes, otherwise if PERL_PV_ESCAPE_NONASCII is set, only
@@ -147,7 +147,7 @@ Perl_pv_escape( pTHX_ SV *dsv, char const * const str,
STRLEN wrote = 0; /* chars written so far */
STRLEN chsize = 0; /* size of data to be written */
STRLEN readsize = 1; /* size of data just read */
- bool isuni= flags & PERL_PV_ESCAPE_UNI ? 1 : 0; /* is this Unicode */
+ bool isuni= flags & PERL_PV_ESCAPE_UNI ? 1 : 0; /* is this UTF-8 */
const char *pv = str;
const char * const end = pv + count; /* end of string */
octbuf[0] = esc;