Fix a bug with non-ascii text in the create catalog dialog

Fixes #1241515 [Create Catalog: Catalog title problems with special characters](https://bugs.launchpad.net/calibre/+bug/1241515)

Merge branch 'master' of https://github.com/GRiker/calibre
This commit is contained in:
Kovid Goyal 2013-10-19 08:21:20 +05:30
commit 6db803d45d
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ class libiMobileDevice():
dst.write(data)
bytes_remaining = 0
else:
self._log("copying %d {:,} bytes".format(file_size))
self._log("copying {:,} bytes".format(file_size))
data = self._afc_file_read(handle, file_size, mode)
dst.write(data)

View File

@ -287,7 +287,7 @@ class PluginWidget(QWidget,Ui_Form):
if child.objectName() == 'format':
current_format = str(child.currentText()).strip()
elif child.objectName() == 'title':
current_title = str(child.text()).strip()
current_title = unicode(child.text()).strip()
self.parentWidget().blockSignals(False)
return current_format, current_title