diff options
author | Karl Williamson <khw@cpan.org> | 2017-11-18 14:16:26 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2017-11-26 10:19:46 -0700 |
commit | 027a0d26fc68a7b01a5143175e03dc7194cf2c2b (patch) | |
tree | 4602bdb577d2ae995d415b5f2091be1965491078 /mg.c | |
parent | c9cd936b8f828f1c71873b459ceaec2300fec6c7 (diff) | |
download | perl-027a0d26fc68a7b01a5143175e03dc7194cf2c2b.tar.gz |
mg.c: Convert to use is_utf8_non_invariant_string()
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |