develooper Front page | perl.perl5.porters | Postings from March 2019

[perl #133945] ce6f496d720f6206455628425320badd95b07372 breaks floatformatting under GTK

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
March 21, 2019 14:52
Subject:
[perl #133945] ce6f496d720f6206455628425320badd95b07372 breaks floatformatting under GTK
Message ID:
rt-4.0.24-30299-1553179941-245.133945-15-0@perl.org
On Thu, 21 Mar 2019 14:28:37 GMT, int32 wrote:
> > In order to run the tests in your tarball, I would have to become the
> > root
> > user (or sudo) and change the default locale.  I am reluctant to do
> > that and,
> > in any case, we have to be able to run the Perl 5 core test suite as
> > non-root
> > users.
> 
> That's not entirely correct. You may need to become root to install
> the
> prerequisites (gtk headers and ExtUtils::PkgConfig you can install
> locally
> though), but locales are OS-specific by design, and if yours has a way
> to use
> one without root, that's great.  However the tests themselves don't
> need root.
> 
> >
> > Could your tests be modified so that an ordinary user could run them?
> 
> If p5 core has already tests for another locale, simulating file
> access required to
> load proper de_DE.UTF-8 or similar, please point me to them and I can
> try to hack on.
> Otherwise I know about locale-dependend tests as much as the next guy,
> unfortunately,
> but again, tests are completely fine with an ordinary user, provided
> proper prerequisites
> are installed.
> 
> 
> /dk
> 
> 
> >
> > Thank you very much.
> >
> > --
> > James E Keenan (jkeenan@cpan.org)

Is this expected output from running the tests in your tarball (where de_DE.utf8 is available but not default)?

#####
$ locale | head -1
LANG=en_US.UTF-8

$ locale -a | grep '^de_DE.utf8'
de_DE.utf8

$ prove -I. -vb t/*.t
t/C-explicit.t ... 
1..1
ok 1
ok
t/C-implicit.t ... 
1..1
ok 1
ok
t/DE-explicit.t .. 
1..1
ok 1
ok
t/DE-implicit.t .. 
1..1
ok 1
ok
t/DE.t ........... 
1..1
ok 1 - Setting locale failed: please install de_DE.UTF-8
ok
t/none.t ......... 
1..1
ok 1
ok
All tests successful.
Files=6, Tests=6,  1 wallclock secs ( 0.04 usr  0.00 sys +  0.12 cusr  0.03 csys =  0.19 CPU)
Result: PASS
#####

Thank you very much.

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

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=133945

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About