diff options
Diffstat (limited to 'gurpmi')
-rwxr-xr-x | gurpmi | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -10,6 +10,8 @@ BEGIN { #- set up a safe path and environment delete @ENV{qw(ENV BASH_ENV IFS CDPATH)}; } +use utf8 'valid'; +use Encode '_utf8_on'; use Gtk3; use gurpmi; use urpm::util 'basename'; @@ -27,6 +29,11 @@ my ($srpms, $rpms) = ([], []); my ($mainw, $mainbox); my @all_rpms = gurpmi::parse_command_line(); +# Gtk3->init will change @ARGV encoding (mga#12407): +foreach (@ARGV) { + utf8::valid($_) && Encode::_utf8_on($_); +} + #- Now, the graphical stuff. Gtk3->init; |