Mageia Bugzilla – Attachment 9562 Details for
Bug 21433
Update failure when RPM download folder includes UTF-8 characters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
fix directory not being UTF-8
0001-fix-directory-not-being-UTF-8-mga-21433.patch (text/plain), 943 bytes, created by
Thierry Vignaud
on 2017-08-03 16:17:46 CEST
(
hide
)
Description:
fix directory not being UTF-8
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2017-08-03 16:17:46 CEST
Size:
943 bytes
patch
obsolete
>From dfdd716586afdfe3cd79ffe3d505b3b00db3e04b Mon Sep 17 00:00:00 2001 >From: Thierry Vignaud <thierry.vignaud@gmail.com> >Date: Wed, 2 Aug 2017 17:50:30 +0200 >Subject: [PATCH] fix directory not being UTF-8 (mga#21433) > >rationale: gtk+3 only works with UTF-8 internally, so the issue here is >just that perl doesn't know it's UTF-8 >--- > mgaapplet | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/mgaapplet b/mgaapplet >index a0cd3968..ae32e46e 100755 >--- a/mgaapplet >+++ b/mgaapplet >@@ -395,6 +395,7 @@ sub confirm_upgrade() { > Gtk3::FileChooserButton->new(N("Browse"), 'select-folder'), > 'selection-changed' => sub { > $temp_dir = $_[0]->get_filename; >+ c::set_tagged_utf8($temp_dir); > my $ok = -d $temp_dir && ! -l $temp_dir && ((stat($temp_dir))[4] == 0); > $ok or ask_warn(N("Error"), N("You must choose a directory owned by the super administrator!")); > }); >-- >2.13.3 >
From dfdd716586afdfe3cd79ffe3d505b3b00db3e04b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud <thierry.vignaud@gmail.com> Date: Wed, 2 Aug 2017 17:50:30 +0200 Subject: [PATCH] fix directory not being UTF-8 (mga#21433) rationale: gtk+3 only works with UTF-8 internally, so the issue here is just that perl doesn't know it's UTF-8 --- mgaapplet | 1 + 1 file changed, 1 insertion(+) diff --git a/mgaapplet b/mgaapplet index a0cd3968..ae32e46e 100755 --- a/mgaapplet +++ b/mgaapplet @@ -395,6 +395,7 @@ sub confirm_upgrade() { Gtk3::FileChooserButton->new(N("Browse"), 'select-folder'), 'selection-changed' => sub { $temp_dir = $_[0]->get_filename; + c::set_tagged_utf8($temp_dir); my $ok = -d $temp_dir && ! -l $temp_dir && ((stat($temp_dir))[4] == 0); $ok or ask_warn(N("Error"), N("You must choose a directory owned by the super administrator!")); }); -- 2.13.3
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21433
:
9558
|
9559
| 9562