My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 29: stdin io magic not stored: use open qw(:utf8)
3 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  reini.urban
Cc:  Heinz.Kn...@gmail.com


Sign in to add a comment
 
Project Member Reported by reini.urban, Aug 16, 2010
This test program fails with B-C-1.27, B::C

test2.pl:
=====
use open qw(:std :utf8);
$_ = <>;
print unpack('U*', $_), "\n";
print $_ if /\w/;
=====

Expected output:
$ echo "ö" | perl ./test2.pl
24610
ö

With B::C, the german umlaut "ö" isn't read as one unicode character but as two unrelated bytes. The "ö" isn't recognized as a word character.
$ perlcc -o test2 test2.pl
$ echo "ö" | ./test2
19518210

Used versions:
- perl v5.10.1 (*) built for i486-linux-gnu-thread-mult
 (from Ubuntu 10.04)
- B::C version 1.27
Jun 22, 2011
Project Member #1 reini.urban
(No comment was entered for this change.)
Summary: utf8 stdio fails: use open qw(:std :utf8)
Jan 31, 2014
Project Member #2 todd.e.rinaldo
Confirmed Failing on 5.14.4
Cc: -heinz.kn...@gmx.de Heinz.Kn...@gmail.com
Jan 31, 2014
Project Member #3 todd.e.rinaldo
Is this another symptom of issue 285?
Jan 31, 2014
Project Member #4 reini.urban
No. perlio layers are not stored.
Feb 14, 2014
Project Member #5 reini.urban
 Issue 203  has been merged into this issue.
Feb 14, 2014
Project Member #6 reini.urban
stdout/stderr IO magic is stored though.
The PL_stdingv IO object (blessed to IO::File) has no magic attached...
Summary: stdin io magic not stored: use open qw(:utf8) (was: utf8 stdio fails: use open qw(:std :utf8))
Sign in to add a comment

Powered by Google Project Hosting