Use locale for output encoding.

This commit is contained in:
hjp 2013-12-18 16:29:00 +00:00
parent defe773283
commit 61aff0e077
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ use strict;
use DBI;
use Getopt::Long;
use Encode qw(:fallbacks encode);
use I18N::Langinfo qw(langinfo CODESET);
my $charset = langinfo(CODESET);
binmode STDOUT, "encoding($charset)";
my $help;
my $vertical; # use vertical output format