[Bug 1048324] New: Reference to perl (5.18.1-288.fc20.x86_64) utf8 string is Invalid Argument to open

bugzilla at redhat.com bugzilla at redhat.com
Fri Jan 3 17:58:22 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1048324

            Bug ID: 1048324
           Summary: Reference to perl (5.18.1-288.fc20.x86_64) utf8 string
                    is Invalid Argument to open
           Product: Fedora
           Version: 20
         Component: perl
          Severity: medium
          Assignee: jplesnik at redhat.com
          Reporter: rossetyler at gmail.com
        QA Contact: extras-qa at fedoraproject.org
                CC: cweyl at alumni.drew.edu, iarnell at gmail.com,
                    jplesnik at redhat.com, kasal at ucw.cz,
                    perl-devel at lists.fedoraproject.org, ppisar at redhat.com,
                    psabata at redhat.com, rc040203 at freenet.de,
                    tcallawa at redhat.com



Created attachment 845034
  --> https://bugzilla.redhat.com/attachment.cgi?id=845034&action=edit
Script that demonstrates the bug.

Description of problem:
#!/usr/bin/perl
my $string = qq{\x{2019}};
open(STRING , '<', \$string) or die "$!: string";

Version-Release number of selected component (if applicable):
perl-5.18.1-288.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run the above perl script (say, bug.pl)

Actual results:
Invalid argument: string at ./bug.pl line 3.

Expected results:
<null>

Additional info:
http://perldoc.perl.org/perlfaq5.html#How-can-I-open-a-filehandle-to-a-string?
Used to work!
Native 8 bit encodings continue to work.
Use old IO::Scalar method as a workaround.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=GOM2ciUKml&a=cc_unsubscribe



More information about the perl-devel mailing list