summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2012-01-05 11:25:15 (GMT)
committerChristian Pointner <equinox@helsinki.at>2012-01-05 11:25:15 (GMT)
commita0b23f7c6189f941f12f0ef27dda7a7a4c930709 (patch)
tree3e1e7176b8586289de19fc3a43ffa4ff9b034674
parent1f5c901cf93408f62d95598155a355e1b198591c (diff)
rhimport utf-8 for stdin and stdout
-rwxr-xr-xrhimport4
1 files changed, 4 insertions, 0 deletions
diff --git a/rhimport b/rhimport
index 1978aa1..f3b9e35 100755
--- a/rhimport
+++ b/rhimport
@@ -43,6 +43,10 @@ my $KEEPCARTS = 0;
my $DROPBOX = "";
my $LISTALLOWED = 0;
+binmode(STDIN, ":utf8");
+binmode(STDOUT, ":utf8");
+binmode(STDERR, ":utf8");
+
GetOptions ("help!" => \$HELP,
"file=s" => \$FILE,
"pool!" => \$POOL,