summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-11-18 14:16:26 -0700
committerKarl Williamson <khw@cpan.org>2017-11-26 10:19:46 -0700
commit027a0d26fc68a7b01a5143175e03dc7194cf2c2b (patch)
tree4602bdb577d2ae995d415b5f2091be1965491078 /mg.c
parentc9cd936b8f828f1c71873b459ceaec2300fec6c7 (diff)
downloadperl-027a0d26fc68a7b01a5143175e03dc7194cf2c2b.tar.gz
mg.c: Convert to use is_utf8_non_invariant_string()
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mg.c b/mg.c
index fe077550f8..64e450fa8a 100644
--- a/mg.c
+++ b/mg.c
@@ -824,9 +824,8 @@ S_fixup_errno_string(pTHX_ SV* sv)
* (http://en.wikipedia.org/wiki/Charset_detection). There is a
* potential that we will get it wrong however, especially on short
* error message text, so do an additional check. */
- if ( ! IN_BYTES /* respect 'use bytes' */
- && ! is_utf8_invariant_string((U8*) SvPVX_const(sv), SvCUR(sv))
- && is_utf8_string((U8*) SvPVX_const(sv), SvCUR(sv))
+ if ( ! IN_BYTES /* respect 'use bytes' */
+ && is_utf8_non_invariant_string((U8*) SvPVX_const(sv), SvCUR(sv))
#ifdef USE_LOCALE_MESSAGES