[PATCH] Use the power of unicode to avoid choking on French partitions

Jean-François Fortin Tam nekohayo at gmail.com
Wed Mar 21 00:40:58 UTC 2012


---
 liveusb/creator.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/liveusb/creator.py b/liveusb/creator.py
index 23e89ca..345b51a 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -448,7 +448,7 @@ class LinuxLiveUSBCreator(LiveUSBCreator):
                 data = {
                     'udi': str(device),
                     'is_optical': bool(dev.Get(device, 'DeviceIsOpticalDisc')),
-                    'label': str(dev.Get(device, 'IdLabel')).replace(' ', '_'),
+                    'label': unicode(dev.Get(device, 'IdLabel')).replace(' ', '_'),
                     'fstype': str(dev.Get(device, 'IdType')),
                     'fsversion': str(dev.Get(device, 'IdVersion')),
                     'uuid': str(dev.Get(device, 'IdUuid')),
-- 
1.7.7.6


--=-SxNiTVaeTEjAsSvUVX5g--



More information about the liveusb-creator mailing list