diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-09-16 14:07:50 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-09-16 14:07:50 +0200 |
commit | 83c555564918110c20f99f55c77d9dfc27f217fb (patch) | |
tree | 31c5fd2e85ae42e4d1d88c89b6060a98f8dc018f /util.c | |
parent | 95961f2bb1706f8782e09e22425d5958169ef5cd (diff) | |
download | perl-83c555564918110c20f99f55c77d9dfc27f217fb.tar.gz |
Fix warn to respect utf8-encoded scalars [perl #45549]
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |