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

run/locale.t fails on Alpine linux #16834

Closed
p5pRT opened this issue Feb 4, 2019 · 11 comments
Closed

run/locale.t fails on Alpine linux #16834

p5pRT opened this issue Feb 4, 2019 · 11 comments

Comments

@p5pRT
Copy link

p5pRT commented Feb 4, 2019

Migrated from rt.perl.org#133818 (status was 'resolved')

Searchable as RT133818$

@p5pRT
Copy link
Author

p5pRT commented Feb 4, 2019

From @tonycoz

Created by @tonycoz

run/locale.t fails the following tests​:

ok 37 # skip no locale available where LC_NUMERIC radix isn't '.'
not ok 38 - In setting complicated invalid LC_ALL, final individ category doesn't need a ';'
# Failed test 38 - In setting complicated invalid LC_ALL, final individ category doesn't need a ';' at run/locale.t line 498
# got "65280"
# expected "0"
not ok 39 - In setting complicated valid LC_ALL, final individ category doesn't need a ';'
# Failed test 39 - In setting complicated valid LC_ALL, final individ category doesn't need a ';' at run/locale.t line 507
# got "65280"
# expected "0"
1..39

The "invalid string" in the first case is​:

LC_COLLATE=foo_BAR;LC_CTYPE=foo_BAR;LC_MESSAGES=foo_BAR;LC_MONETARY=foo_BAR;LC_NUMERIC=foo_BAR

The "valid string" in the second case is​:

LC_COLLATE=Afrikaans;LC_CTYPE=Afrikaans;LC_MESSAGES=Afrikaans;LC_MONETARY=Afrikaans;LC_NUMERIC=Afrikaans

Perl Info

Flags:
    category=core
    severity=low

Site configuration information for perl 5.29.8:

Configured by tony at Mon Feb  4 13:22:49 AEDT 2019.

Summary of my perl5 (revision 5 version 29 subversion 8) configuration:
  Commit id: 04db542212fdad3a62f13afe741c99028f4bf799
  Platform:
    osname=linux
    osvers=4.19.18-0-vanilla
    archname=x86_64-linux
    uname='linux alpine64 4.19.18-0-vanilla #1-alpine smp sat jan 26 21:59:33 utc 2019 x86_64 linux '
    config_args='-des -Dusedevel'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=undef
    usemultiplicity=undef
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    optimize='-O2'
    cppflags='-D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong'
    ccversion=''
    gccversion='8.2.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/include/fortify /usr/lib /usr/local/lib /lib/../lib /usr/lib/../lib /lib
    libs=-lpthread -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
    libc=/usr/lib/libc.a
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'



@INC for perl 5.29.8:
    lib
    /usr/local/lib/perl5/site_perl/5.29.8/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.29.8
    /usr/local/lib/perl5/5.29.8/x86_64-linux
    /usr/local/lib/perl5/5.29.8


Environment for perl 5.29.8:
    HOME=/home/tony
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    PERL_BADLANG (unset)
    SHELL=/bin/ash

@p5pRT
Copy link
Author

p5pRT commented Feb 4, 2019

From @tonycoz

On Sun, 03 Feb 2019 18​:52​:38 -0800, tonyc wrote​:

run/locale.t fails the following tests​:

Possibly related, ../lib/locale.t also fails​:

ok 449 Verify atof with locale radix and negative exponent
not ok 450 variable set to setlocale(BAD LOCALE) is considered uninitialized
ok 451 uc("") in C locale (use locale; not encoded in utf8) should be "", got ""

Tony

@p5pRT
Copy link
Author

p5pRT commented Mar 3, 2019

From @jkeenan

On Mon, 04 Feb 2019 02​:52​:38 GMT, tonyc wrote​:

This is a bug report for perl from tony@​develop-help.com,
generated with the help of perlbug 1.41 running under perl 5.29.8.

-----------------------------------------------------------------
[Please describe your issue here]

run/locale.t fails the following tests​:

ok 37 # skip no locale available where LC_NUMERIC radix isn't '.'
not ok 38 - In setting complicated invalid LC_ALL, final individ
category doesn't need a ';'
# Failed test 38 - In setting complicated invalid LC_ALL, final
individ category doesn't need a ';' at run/locale.t line 498
# got "65280"
# expected "0"
not ok 39 - In setting complicated valid LC_ALL, final individ
category doesn't need a ';'
# Failed test 39 - In setting complicated valid LC_ALL, final individ
category doesn't need a ';' at run/locale.t line 507
# got "65280"
# expected "0"
1..39

The "invalid string" in the first case is​:

LC_COLLATE=foo_BAR;LC_CTYPE=foo_BAR;LC_MESSAGES=foo_BAR;LC_MONETARY=foo_BAR;LC_NUMERIC=foo_BAR

The "valid string" in the second case is​:

LC_COLLATE=Afrikaans;LC_CTYPE=Afrikaans;LC_MESSAGES=Afrikaans;LC_MONETARY=Afrikaans;LC_NUMERIC=Afrikaans

Tony, is this a machine from which smoke-test reports are (or could be) submitted?

(I ask 'cause I haven't heard of Alpine linux before.)

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Mar 3, 2019

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Mar 3, 2019

From @Tux

On Sat, 02 Mar 2019 18​:02​:13 -0800, "James E Keenan via RT"
<perlbug-followup@​perl.org> wrote​:

On Mon, 04 Feb 2019 02​:52​:38 GMT, tonyc wrote​:

This is a bug report for perl from tony@​develop-help.com,
generated with the help of perlbug 1.41 running under perl 5.29.8.

-----------------------------------------------------------------
[Please describe your issue here]

run/locale.t fails the following tests​:

ok 37 # skip no locale available where LC_NUMERIC radix isn't '.'
not ok 38 - In setting complicated invalid LC_ALL, final individ
category doesn't need a ';'
# Failed test 38 - In setting complicated invalid LC_ALL, final
individ category doesn't need a ';' at run/locale.t line 498
# got "65280"
# expected "0"
not ok 39 - In setting complicated valid LC_ALL, final individ
category doesn't need a ';'
# Failed test 39 - In setting complicated valid LC_ALL, final
individ category doesn't need a ';' at run/locale.t line 507
# got "65280"
# expected "0"
1..39

The "invalid string" in the first case is​:

LC_COLLATE=foo_BAR;LC_CTYPE=foo_BAR;LC_MESSAGES=foo_BAR;LC_MONETARY=foo_BAR;LC_NUMERIC=foo_BAR

The "valid string" in the second case is​:

LC_COLLATE=Afrikaans;LC_CTYPE=Afrikaans;LC_MESSAGES=Afrikaans;LC_MONETARY=Afrikaans;LC_NUMERIC=Afrikaans

Tony, is this a machine from which smoke-test reports are (or could
be) submitted?

(I ask 'cause I haven't heard of Alpine linux before.)

There's probably a truckload of dist many of us never heard of :)
http​://distrowatch.org/table.php

As far as I am aware, Alpine Linux is quite popular with docker-image
creators. It is a very small dist, very suitable for that purpose. I
noticed that this dist (as my colleagues also use it in docker), quite
often require timezone adjustments on startup. I'd call that its
weakest issue.

--
H.Merijn Brand http​://tux.nl Perl Monger http​://amsterdam.pm.org/
using perl5.00307 .. 5.29 porting perl5 on HP-UX, AIX, and openSUSE
http​://mirrors.develooper.com/hpux/ http​://www.test-smoke.org/
http​://qa.perl.org http​://www.goldmark.org/jeff/stupid-disclaimers/

@p5pRT
Copy link
Author

p5pRT commented Mar 3, 2019

From @Tux

On Sun, 3 Mar 2019 11​:43​:35 +0100, "H.Merijn Brand"
<h.m.brand@​xs4all.nl> wrote​:

Tony, is this a machine from which smoke-test reports are (or could
be) submitted?

(I ask 'cause I haven't heard of Alpine linux before.)

There's probably a truckload of dist many of us never heard of :)
http​://distrowatch.org/table.php

As far as I am aware, Alpine Linux is quite popular with docker-image
creators. It is a very small dist, very suitable for that purpose. I
noticed that this dist (as my colleagues also use it in docker), quite
often require timezone adjustments on startup. I'd call that its
weakest issue.

As you can see in this table​:
http​://distrowatch.org/table.php?distribution=alpine

Alpine stopped including perl in their dist as of version 3.6.2
In that action, also python, postfix, postgresql, and samba were
removed. (As I started assembling and monitoring this list in 2018-07
all changes before that I don't know, so it might have been version
3.6.0 or something else)

In https://github.com/Tux/System-Info/blob/master/sandbox/dist-perl.csv
I keep an up-to-date list of what Linux distribution ships which
version of perl​:

$ grep -i alpine sandbox/*csv
alpine,3.9.1,2019-03-01,--
alpine,3.6.2,2017-06-17,--
alpine,3.2.2,2015-07-14,5.20.2
alpine,2.7.8,2014-05-21,5.18.1
alpine,1.10.6,2010-06-16,5.10.1

$ csv-check sandbox/*csv
Checked sandbox/dist-perl.csv with csv-check 2.01
using Text​::CSV_XS 1.38 with perl 5.28.1 and Unicode 10.0.0
OK​: rows​: 1974, columns​: 4
  sep = <,>, quo = <">, bin = <1>, eol = <"\r\n">

--
H.Merijn Brand http​://tux.nl Perl Monger http​://amsterdam.pm.org/
using perl5.00307 .. 5.29 porting perl5 on HP-UX, AIX, and openSUSE
http​://mirrors.develooper.com/hpux/ http​://www.test-smoke.org/
http​://qa.perl.org http​://www.goldmark.org/jeff/stupid-disclaimers/

@p5pRT
Copy link
Author

p5pRT commented Mar 5, 2019

From @tonycoz

On Sat, 02 Mar 2019 18​:02​:13 -0800, jkeenan wrote​:

Tony, is this a machine from which smoke-test reports are (or could
be) submitted?

(I ask 'cause I haven't heard of Alpine linux before.)

Not practically, no.

It's a VM running on my desktop.

Tony

@p5pRT
Copy link
Author

p5pRT commented Mar 5, 2019

From @tonycoz

On Sun, 03 Feb 2019 18​:52​:38 -0800, tonyc wrote​:

run/locale.t fails the following tests​:

ok 37 # skip no locale available where LC_NUMERIC radix isn't '.'
not ok 38 - In setting complicated invalid LC_ALL, final individ
category doesn't need a ';'
# Failed test 38 - In setting complicated invalid LC_ALL, final
individ category doesn't need a ';' at run/locale.t line 498
# got "65280"
# expected "0"
not ok 39 - In setting complicated valid LC_ALL, final individ
category doesn't need a ';'
# Failed test 39 - In setting complicated valid LC_ALL, final individ
category doesn't need a ';' at run/locale.t line 507
# got "65280"
# expected "0"
1..39

The "invalid string" in the first case is​:

LC_COLLATE=foo_BAR;LC_CTYPE=foo_BAR;LC_MESSAGES=foo_BAR;LC_MONETARY=foo_BAR;LC_NUMERIC=foo_BAR

The "valid string" in the second case is​:

LC_COLLATE=Afrikaans;LC_CTYPE=Afrikaans;LC_MESSAGES=Afrikaans;LC_MONETARY=Afrikaans;LC_NUMERIC=Afrikaans

This is fixed in blead.

Tony

@p5pRT
Copy link
Author

p5pRT commented Mar 5, 2019

@tonycoz - Status changed from 'open' to 'pending release'

@p5pRT
Copy link
Author

p5pRT commented May 22, 2019

From @khwilliamson

Thank you for filing this report. You have helped make Perl better.

With the release today of Perl 5.30.0, this and 160 other issues have been
resolved.

Perl 5.30.0 may be downloaded via​:
https://metacpan.org/release/XSAWYERX/perl-5.30.0

If you find that the problem persists, feel free to reopen this ticket.

@p5pRT
Copy link
Author

p5pRT commented May 22, 2019

@khwilliamson - Status changed from 'pending release' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant