summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-11-25 12:18:42 -0700
committerKarl Williamson <khw@cpan.org>2014-11-26 09:18:33 -0700
commit9f10db87f54f2a85594e3661927a9b6128c1f425 (patch)
treefbb32d9c0629ccea6b57538b401f577288b4b35f /toke.c
parent09902b1fc2af1bca16bf40b6f6dd1e420562d9e2 (diff)
downloadperl-9f10db87f54f2a85594e3661927a9b6128c1f425.tar.gz
Change core to use is_invariant_string()
is_ascii_string's name has misled me in the past; the new name is clearer.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 9a01103439..236acd5adc 100644
--- a/toke.c
+++ b/toke.c
@@ -1968,7 +1968,7 @@ S_newSV_maybe_utf8(pTHX_ const char *const start, STRLEN len)
SV * const sv = newSVpvn_utf8(start, len,
!IN_BYTES
&& UTF
- && !is_ascii_string((const U8*)start, len)
+ && !is_invariant_string((const U8*)start, len)
&& is_utf8_string((const U8*)start, len));
return sv;
}