From b8bcb63f0bae3045698731fe6c5b33f97a05c729 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 28 May 2015 20:55:51 -0400 Subject: fix handling UTF-8 directories (mga#13354) --- bin/draknfs | 2 ++ bin/draksambashare | 2 ++ 2 files changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/draknfs b/bin/draknfs index 1b6f835..8d5f90e 100755 --- a/bin/draknfs +++ b/bin/draknfs @@ -104,6 +104,8 @@ sub show_file_dialog { if ($answer eq 'ok') { my $file = $file_dlg->get_filename; -d $file or err_dialog(N("Error!"), N("Should be a directory.")) and return; + # get_filename() returns UTF-8: + c::set_tagged_utf8($file); $data->set_text($file); } $file_dlg->hide; diff --git a/bin/draksambashare b/bin/draksambashare index 9fb8749..e55e7bd 100755 --- a/bin/draksambashare +++ b/bin/draksambashare @@ -232,6 +232,8 @@ sub show_file_dialog { if ($answer eq 'ok') { my $file = $file_dlg->get_filename; -d $file or err_dialog(N("Error!"), N("Should be a directory.")) and return; + # get_filename() returns UTF-8: + c::set_tagged_utf8($file); $data->set_text($file); } $file_dlg->hide; -- cgit v1.2.1