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)
commit27de4cd7b41779a5c1ec8643cb7210a1f6f8a34b (patch)
tree3e1e7176b8586289de19fc3a43ffa4ff9b034674
parentc7a3e88cd8cde901c966bd7707557fcfc68f1e5a (diff)
rhimport utf-8 for stdin and stdout
git-svn-id: https://svn.helsinki.at/rhimport/trunk@108 7c65635b-ec39-4f67-a626-873dbafdd612
-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,