summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-09-16 14:07:50 +0200
committerRafael Garcia-Suarez <rgs@consttype.org>2010-09-16 14:07:50 +0200
commit83c555564918110c20f99f55c77d9dfc27f217fb (patch)
tree31c5fd2e85ae42e4d1d88c89b6060a98f8dc018f /util.c
parent95961f2bb1706f8782e09e22425d5958169ef5cd (diff)
downloadperl-83c555564918110c20f99f55c77d9dfc27f217fb.tar.gz
Fix warn to respect utf8-encoded scalars [perl #45549]
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/util.c b/util.c
index 1809f707af..2ab14d71ed 100644
--- a/util.c
+++ b/util.c
@@ -1399,10 +1399,8 @@ Perl_write_to_stderr(pTHX_ SV* msv)
dSAVED_ERRNO;
#endif
PerlIO * const serr = Perl_error_log;
- STRLEN msglen;
- const char* message = SvPVx_const(msv, msglen);
- PERL_WRITE_MSG_TO_CONSOLE(serr, message, msglen);
+ do_print(msv, serr);
(void)PerlIO_flush(serr);
#ifdef USE_SFIO
RESTORE_ERRNO;