Get default encoding from locale
This commit is contained in:
parent
be21bc6ff8
commit
51abe1d11a
|
@ -1,11 +1,13 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
use warnings;
|
use warnings;
|
||||||
use strict;
|
use strict;
|
||||||
use Getopt::Long;
|
|
||||||
use Pod::Usage;
|
|
||||||
use autodie;
|
use autodie;
|
||||||
|
|
||||||
my $encoding;
|
use Getopt::Long;
|
||||||
|
use I18N::Langinfo qw(langinfo CODESET);
|
||||||
|
use Pod::Usage;
|
||||||
|
|
||||||
|
my $encoding = langinfo(CODESET);
|
||||||
|
|
||||||
GetOptions('encoding=s', \$encoding) or pod2usage();
|
GetOptions('encoding=s', \$encoding) or pod2usage();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue