From 357b5309e980ab1d1701b61298a2a2637f704e95 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Jan 2014 11:03:20 +0100 Subject: Decode all arguments (thanks mxey) --- bin/efa | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/efa b/bin/efa index a6787f9..a2af555 100755 --- a/bin/efa +++ b/bin/efa @@ -136,6 +136,8 @@ sub display_connection { return; } +@ARGV = map { decode( 'UTF-8', $_ ) } @ARGV; + #<<< GetOptions( $opt, @@ -178,11 +180,6 @@ for my $pair ( [ \@from, \$from_type ], [ \@via, \$via_type ], [ \@to, \$to_type ], ) { - if ( @{ $pair->[0] } ) { - $pair->[0]->[0] = decode( 'UTF-8', $pair->[0]->[0] ); - $pair->[0]->[1] = decode( 'UTF-8', $pair->[0]->[1] ); - } - next if ( not defined $pair->[0]->[1] ); if ( -- cgit v1.2.3