summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-08-26 13:42:53 -0600
committerKarl Williamson <khw@cpan.org>2016-08-31 20:32:35 -0600
commitc5f058dfd0db4297255d7df7a085fdf36232d5b9 (patch)
treec1077dca54f89961a13c2cf40768e53a46de7457 /mg.c
parent8871a094916837597c6a703c2e1b2306314df4fa (diff)
downloadperl-c5f058dfd0db4297255d7df7a085fdf36232d5b9.tar.gz
Use new name 'is_utf8_invariant_string' in core
This changes the places in the core to use the clearer synonym added by the previous commit. It also changes one place that hand-rolled its own code to use this function instead.
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 0a93cb86cf..874933f6ff 100644
--- a/mg.c
+++ b/mg.c
@@ -758,7 +758,7 @@ S_fixup_errno_string(pTHX_ SV* sv)
* error message text. (If it turns out to be necessary, we could also
* keep track if the current LC_MESSAGES locale is UTF-8) */
if (! IN_BYTES /* respect 'use bytes' */
- && ! is_invariant_string((U8*) SvPVX_const(sv), SvCUR(sv))
+ && ! is_utf8_invariant_string((U8*) SvPVX_const(sv), SvCUR(sv))
&& is_utf8_string((U8*) SvPVX_const(sv), SvCUR(sv)))
{
SvUTF8_on(sv);