Skip to content

Commit

Permalink
Makes locale being correctly set, additional key set or removed
Browse files Browse the repository at this point in the history
  • Loading branch information
matsduf committed Jun 26, 2024
1 parent 10918a2 commit e0fe0f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/translator.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ use warnings;
use utf8;

use POSIX qw (setlocale);
use Locale::Messages qw[LC_MESSAGES LC_ALL];

use Locale::Messages qw[LC_MESSAGES LC_ALL LC_CTYPE];
use Test::More;

# Set correct locale for translation in case not set in calling environment
delete $ENV{"LANG"};
delete $ENV{"LANGUAGE"};
setlocale( LC_CTYPE, "C.UTF-8");
setlocale( LC_ALL, "C.UTF-8");
setlocale( LC_MESSAGES, "C.UTF-8");

Expand Down

0 comments on commit e0fe0f8

Please sign in to comment.