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
Bug in POSIX::strtod at Windows #7577
Comments
From Torsten.Werner@assyst-intl.comCreated by torsten-werner@assyst-intl.comThis is a bug report for perl from torsten-werner@assyst-intl.com, ----------------------------------------------------------------- Example: G:\> Perl is able to create and handle this kind of numbers. Just in the moment I use a own function. I post it ################ cut here ##################### use strict; BEGIN { use POSIX qw( localeconv ); sub strtod ($) sub show($) show 123 + 0.4560056789; ############## cut here ################ Perl Info
|
From @steve-m-hayTorsten.Werner@assyst-intl.com (via RT) wrote:
Works fine for me: C:\Temp>perl -MPOSIX -e "print join(', ',POSIX::strtod('12.45006789'));"
"Different decimal dots" could be the key there, rather than the large C:\Temp>perl -MPOSIX -e "print join(', ',POSIX::strtod('12,45006789'));" However, the POSIX::strtod() docs do say that it should respect any C:\Temp>perl -MPOSIX -e "setlocale(LC_ALL, 'German'); print join(', So perhaps you just need to set the locale appropriately? - Steve This email has been scanned for viruses and content by the Radan Computational Webshield Appliances. |
The RT System itself - Status changed from 'new' to 'open' |
From Torsten.Werner@assyst-intl.comHello, Torsten.Werner@assyst-intl.com (via RT) wrote:
Works fine for me: C:\Temp>perl -MPOSIX -e "print join(', ',POSIX::strtod('12.45006789'));"
"Different decimal dots" could be the key there, rather than the large C:\Temp>perl -MPOSIX -e "print join(', ',POSIX::strtod('12,45006789'));" However, the POSIX::strtod() docs do say that it should respect any C:\Temp>perl -MPOSIX -e "setlocale(LC_ALL, 'German'); print join(', So perhaps you just need to set the locale appropriately? - Steve This email has been scanned for viruses and content by the Radan |
@iabyn - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#32316 (status was 'rejected')
Searchable as RT32316$
The text was updated successfully, but these errors were encountered: