-
Notifications
You must be signed in to change notification settings - Fork 3
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
Using Locale::CLDR corrupts CLDR::Number #52
Comments
Hi Marcel, thanks for reporting this. I’m not sure why |
I will try to find out the actual cause of this (will also contact the developer of Locale::CLDR). I will let you know the outcome and if I am able to make a fix for it. |
I have been debugging my test script, first without the Without With Now examining the code of My proposal would be to change the following code in the function
to
Would it be possible to make this change in the repository and create a new release of CLDR::Number in metacpan? Of course I can locally patch it, but that would not make it available to other users of this module. |
In a project I am using
CLDR::Number
for quite some time to format numbers in the right locale.Now I want to use
Locale::CLDR
to get country names in the correct language. However, as soon as I useLocale::CLDR
, formatting an integer number viaCLDR::Number
fails with the message:Can't locate object method "ffround" via package "Math::BigInt" at <path_to>/perllib/CLDR/Number/Role/Format.pm line 260
I can easily reproduce this using the following script:
Here, the formatting of the number 42 will fail with the indicated message. As soon as I remove the line
use Locale::CLDR
, the formatting works as expected.Do you know why using
Locale::CLDR
causesCLDR::Number
to break? I know that the latter is a somewhat older module, but I do not want to let go of it. If there is a more up-to-date module with a similar interface asCLDR::Number
, then I will definitely check it out.The text was updated successfully, but these errors were encountered: