We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example code (refered as foo.pl):
{ package Foo; use perl5i::2; } { package Bar; use perl5i::2; } use Devel::Peek; Dump($ARGV[0]);
If you run that with perl foo.pl ö, it prints the following:
perl foo.pl ö
SV = PV(0x8f917c8) at 0x8facf80 REFCNT = 1 FLAGS = (POK,pPOK,UTF8) PV = 0x93dbe58 "\357\277\275"\0 [UTF8 "\x{fffd}"] CUR = 3 LEN = 4
But it should print:
SV = PV(0x96077c8) at 0x9622f80 REFCNT = 1 FLAGS = (POK,pPOK,UTF8) PV = 0x9adbfa8 "\303\266"\0 [UTF8 "\x{f6}"] CUR = 2 LEN = 4
I guess this get's executed twice (from perl5i/2.pm):
# utf8ify @ARGV $_ = Encode::decode('utf8', $_) for @ARGV;
The text was updated successfully, but these errors were encountered:
Yep, that really should only happen once per load. Just needs a state flag.
Sorry, something went wrong.
Only encode @argv once.
Closed by 022b4cc
022b4cc
Fixes evalEmpire#176
No branches or pull requests
Example code (refered as foo.pl):
If you run that with
perl foo.pl ö
, it prints the following:But it should print:
I guess this get's executed twice (from perl5i/2.pm):
The text was updated successfully, but these errors were encountered: