Skip to content
New issue

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

Environment variables with Unicode (non-ASCII) values on Windows are not printed correctly by Perl #17091

Open
p5pRT opened this issue Jul 9, 2019 · 6 comments
Labels
distro-mswin32 Unicode and System Calls Bad interactions of syscalls and UTF-8

Comments

@p5pRT
Copy link

p5pRT commented Jul 9, 2019

Migrated from rt.perl.org#134278 (status was 'open')

Searchable as RT134278$

@p5pRT
Copy link
Author

p5pRT commented Jul 9, 2019

@p5pRT
Copy link
Author

p5pRT commented Jul 9, 2019

@p5pRT
Copy link
Author

p5pRT commented Jul 9, 2019

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jul 9, 2019

From raghuvir.leelasagar@gmail.com

Hello,

I wanted to add to the ticket that this issue exists in Perl 5.30 as well.

I walked through the same reproduction steps with Strawberry Perl v5.30.0 on my Windows host, and the result of displaying the value of the environment variable ‘FOOBAR’ is the same as seen on Perl 5.20.

Regards,
Raghuvir.

@p5pRT
Copy link
Author

p5pRT commented Jul 11, 2019

From rleelasa@mathworks.com

Hello,

I wanted to add to the ticket, that the issue persists in Perl 5.30.

I walked through the same reproduction steps with Strawberry Perl v5.30.0 on my Windows host, and the result of displaying the value of the environment variable 'FOOBAR' is the same as seen on Perl 5.20.

Regards,
Raghuvir.

@p5pRT
Copy link
Author

p5pRT commented Jul 15, 2019

From @tonycoz

On Wed, 10 Jul 2019 21​:29​:09 -0700, rleelasa@​mathworks.com wrote​:

Hello,

I wanted to add to the ticket, that the issue persists in Perl 5.30.

I walked through the same reproduction steps with Strawberry Perl
v5.30.0 on my Windows host, and the result of displaying the value of
the environment variable 'FOOBAR' is the same as seen on Perl 5.20.

In general perl uses the "ANSI" Win32 APIs, and loads the environment from the ANSI copy of the environment.

There's a number of similar issues, put together it's very non-trivial to fix :(

Tony

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distro-mswin32 Unicode and System Calls Bad interactions of syscalls and UTF-8
Projects
None yet
Development

No branches or pull requests

3 participants