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
POSIX::localeconv: behavior change when called without POSIX::setlocale #14437
Comments
From @eserteIn bleadperl, if a locale is set and POSIX::localeconv() called without a prior call to POSIX::setlocale(), then the user's locale is used. This was not the case in perl 5.20 and earlier: $ env LC_ALL=de_DE.UTF-8 perl5.20.1 -MPOSIX=localeconv -e 'warn localeconv()->{decimal_point}' Maybe this is documented somewhere in perl*delta.pod or perllocale.pod, but I could not find the place. Nevertheless this is at least surprising, because an equivalent C program would not use the user's locale unless setlocale() is explicitly called. Regards, |
From @khwilliamsonOn 01/21/2015 01:55 PM, slaven@rezic.de (via RT) wrote:
The documentation is in perllocale: Not within the scope of "use locale" · ... · Also Perl gives access to various C library functions I think the text there should be clarified, though. "Some of those I'm not sure what to do about this. The situation earlier was that some Actually, the difference between a C program and a Perl one isn't what I suppose it would be possible to change Perl to meet that expectation, |
The RT System itself - Status changed from 'new' to 'open' |
From @khwilliamsonThe behavior is now consistent, and we haven't had further problems noted. So, I'm rejecting this ticket |
@khwilliamson - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#123649 (status was 'rejected')
Searchable as RT123649$
The text was updated successfully, but these errors were encountered: