Use locale for output encoding.
This commit is contained in:
parent
defe773283
commit
61aff0e077
|
@ -20,6 +20,11 @@ use strict;
|
||||||
use DBI;
|
use DBI;
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
use Encode qw(:fallbacks encode);
|
use Encode qw(:fallbacks encode);
|
||||||
|
use I18N::Langinfo qw(langinfo CODESET);
|
||||||
|
|
||||||
|
my $charset = langinfo(CODESET);
|
||||||
|
binmode STDOUT, "encoding($charset)";
|
||||||
|
|
||||||
|
|
||||||
my $help;
|
my $help;
|
||||||
my $vertical; # use vertical output format
|
my $vertical; # use vertical output format
|
||||||
|
|
Loading…
Reference in New Issue