develooper Front page | perl.perl5.porters | Postings from January 2001

Re: 8482 busted for $^V sprintf()s on OS/390

Thread Previous | Thread Next
From:
andreas.koenig
Date:
January 21, 2001 01:57
Subject:
Re: 8482 busted for $^V sprintf()s on OS/390
Message ID:
m3vgr9grd7.fsf@ak-71.mind.de
>>>>> On Sat, 20 Jan 2001 22:27:48 +0000, nick@ing-simmons.net (Nick Ing-Simmons) said:

 > Jarkko Hietaniemi <jhi@iki.fi> writes:
>> "Wide character in print" means that a string was (internally) marked
>> UTF-8 and the string truly contains > 0xff (wide) characters, and you
>> tried to output that.  Since wide characters cannot be output as such
>> (a conversion to bytes is needed, using some character set mapping),
>> print() barfed.  This is one of the dreaded "should not happen" cases.

 > It can happen easily enough, and a PerlIO layer which is tagged as accepting
 > utf8 will not give that error but (should) give its own error if it cannot 
 > represent the character. But we have not changed anything in that area 
 > recently, so I think print is being fed junk. Possibly (as this is OS390)
 > we have one of those EBCDIC issues here.

 print chr 9729

dies with the "Wide character in print" error from patch 8058 through
8494 for me. On Linux.

 binmode STDOUT, ":utf8"; print chr 9729;

works. Should we not presume STDOUT to be utf8-aware? Or am I missing
a Configure option?

-- 
andreas

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About