liveusb/creator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e0a52cf3f891614c0204a32f5e467ab7da41d739 Author: Jean-François Fortin Tam nekohayo@gmail.com Date: Tue Mar 20 20:40:58 2012 -0400
Use the power of unicode to avoid choking on French partitions
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')),
liveusb-creator@lists.stg.fedorahosted.org