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

Test failure with perl 5.21.x and non-English locale #110

Open
eserte opened this issue Apr 25, 2015 · 0 comments
Open

Test failure with perl 5.21.x and non-English locale #110

eserte opened this issue Apr 25, 2015 · 0 comments

Comments

@eserte
Copy link

eserte commented Apr 25, 2015

A sample fail report: http://www.cpantesters.org/cpan/report/7ed24a94-ea04-11e4-9c74-6970e0bfc7aa

perl 5.21.x changed the handling of $!: previously the outer locale environment was used for the stringified values, but with 5.21.x one has to explicitely say use locale to get localized $! messages:

$ env LC_ALL=de_DE.UTF-8 perl5.20.2  -E '$! = 1; say $!'
Die Operation ist nicht erlaubt
$ env LC_ALL=de_DE.UTF-8 perl5.21.11 -E '$! = 1; say $!'
Operation not permitted
$ env LC_ALL=de_DE.UTF-8 perl5.21.11 -E '$! = 1; use locale; say $!'
Die Operation ist nicht erlaubt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant