Skip to content

Commit

Permalink
t/capabilities.t: sanitize locale so matching error messages works
Browse files Browse the repository at this point in the history
  • Loading branch information
seveas committed Aug 29, 2014
1 parent 50ddff9 commit 0df6bf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/capabilities.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
use strict;
use warnings;

BEGIN {
$ENV{LANG}, $ENV{LANGAUGE} = $ENV{LC_MESSAGES} = $ENV{LC_ALL} = "C";

This comment has been minimized.

Copy link
@eserte

eserte Apr 4, 2015

Contributor

I think the first comma is wrong here.

This comment has been minimized.

Copy link
@eserte

eserte Apr 4, 2015

Contributor

And LANGAUGE should be LANGUAGE.

}

use Test::More tests => 291;
use Linux::Prctl qw(:constants);

Expand Down

1 comment on commit 0df6bf4

@eserte
Copy link
Contributor

@eserte eserte commented on 0df6bf4 Apr 4, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this does not fix it --- probably perl's own setlocale() call was done too early (while initilaizing the interpreter). The only fix seems an explicit call to POSIX::setlocale. See #1

Please sign in to comment.