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 t/deflators/formatnumber.t fails on Ubuntu 20.04 #64

Open
hakonhagland opened this issue Aug 27, 2020 · 1 comment
Open

Test t/deflators/formatnumber.t fails on Ubuntu 20.04 #64

hakonhagland opened this issue Aug 27, 2020 · 1 comment

Comments

@hakonhagland
Copy link
Contributor

System info: Ubuntu 20.04, perl version 5.30.0, norwegian locale.

$ prove -bv t/deflators/formatnumber.t
t/deflators/formatnumber.t .. 
1..1
not ok 1 - formatted number is there

#   Failed test 'formatted number is there'
#   at t/deflators/formatnumber.t line 23.
Wide character in print at /home/hakon/perlbrew/perls/perl-5.30.0/lib/5.30.0/Test2/Formatter/TAP.pm line 124.
#                   '<form action="" method="post">
# <div>
# <input name="foo" type="text" value="10 002 300,12300000" />
# </div>
# </form>
# '
#     doesn't match '(?^:\"10[,. ]{0,2}002[,. ]{0,2}300[., ]123[,. ]?000[,. ]?00\")'
# Looks like you failed 1 test of 1.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

Test Summary Report
-------------------
t/deflators/formatnumber.t (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=1, Tests=1,  1 wallclock secs ( 0.01 usr  0.00 sys +  0.25 cusr  0.02 csys =  0.28 CPU)
Result: FAIL
hakonhagland added a commit to hakonhagland/HTML-FormFu that referenced this issue Aug 27, 2020
The test uses Number::Format which uses POSIX::localeconv().
With locale LC_MONETARY=nb_NO.UTF-8 POSIX::localeconv() returns
\N{NARROW NO-BREAK SPACE} for "thousands_sep" instead of a regular
space.
djzort pushed a commit that referenced this issue Aug 27, 2020
The test uses Number::Format which uses POSIX::localeconv().
With locale LC_MONETARY=nb_NO.UTF-8 POSIX::localeconv() returns
\N{NARROW NO-BREAK SPACE} for "thousands_sep" instead of a regular
space.
@djzort
Copy link
Collaborator

djzort commented Aug 27, 2020

Close this when new release hits the CPAN

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

2 participants