[gnome-boxes] Make sure domain title is in UTF-8



commit d4c389a553e2b1ae2f02fc32c5677ded204b5177
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Wed Nov 28 11:44:54 2012 +0100

    Make sure domain title is in UTF-8
    
    When creating a VM from an unknown media, we use the filename as
    the media label, and we then reuse it as the VM title we show in the
    UI. Use get_utf8_basename() to make sure it's an UTF-8 string.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=689211

 src/installer-media.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/installer-media.vala b/src/installer-media.vala
index 3f1dedb..032416b 100644
--- a/src/installer-media.vala
+++ b/src/installer-media.vala
@@ -157,7 +157,7 @@ private class Boxes.InstallerMedia : GLib.Object {
             this.label = os.get_name ();
         else {
             // No appropriate label? :( Lets just use filename then
-            this.label = Path.get_basename (device_file);
+            this.label = get_utf8_basename (device_file);
 
             return;
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]