summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-01-07 11:04:27 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-01-07 11:04:27 +0100
commitaf4eb2d003b81afb528a9b4ee1a06ba52062c117 (patch)
treea40410ecd8e78551794d6644ff64394f5b33a65b
parent574e641846ced2bec34276c9667eaefb0182fb7d (diff)
efa-m: Just decode all arguments
-rwxr-xr-xbin/efa-m5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/efa-m b/bin/efa-m
index b76061e..3cae63a 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -18,6 +18,8 @@ my $efa_url = 'http://efa.vrr.de/vrr/XSLT_DM_REQUEST';
my ( $date, $time, $input_type, $list_lines, $relative_times );
my ( @grep_lines, @grep_platforms );
+@ARGV = map { decode( 'UTF-8', $_ ) } @ARGV;
+
GetOptions(
'd|date=s' => \$date,
'h|help' => sub { show_help(0) },
@@ -41,9 +43,6 @@ if ( @ARGV != 2 ) {
my ( $place, $input ) = @ARGV;
-$place = decode( 'UTF-8', $place );
-$input = decode( 'UTF-8', $input );
-
if ( $input =~ s{ ^ (?<type> address|poi|stop) : }{}x ) {
$input_type = $+{type};
}