* src/GrampsDb/_GrampsDBCallback.py: sys.getfilesystemencoding()
* src/GrampsDb/_GrampsBSDDB.py: sys.getfilesystemencoding() * src/Exporter.py: sys.getfilesystemencoding() * src/ReportBase/_FileEntry.py: sys.getfilesystemencoding() * src/Editors/_EditMedia.py: sys.getfilesystemencoding() * src/DisplayTabs/_SourceEmbedList.py: sys.getfilesystemencoding() * src/plugins/WriteCD.py: sys.getfilesystemencoding() * src/plugins/WritePkg.py: sys.getfilesystemencoding() * src/plugins/Check.py: sys.getfilesystemencoding() * src/plugins/EventCmp.py: sys.getfilesystemencoding() * src/AddMedia.py: sys.getfilesystemencoding() * src/DisplayModels/_BaseModel.py: sys.getfilesystemencoding() * src/DateEdit.py: sys.getfilesystemencoding() * src/ArgHandler.py: sys.getfilesystemencoding() * src/DbLoader.py: sys.getfilesystemencoding() svn: r7951
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
import sys
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -151,7 +152,8 @@ class Exporter:
|
||||
the selected options (format, filename) and present the summary
|
||||
of the proposed action.
|
||||
"""
|
||||
filename = self.chooser.get_filename()
|
||||
filename = unicode(self.chooser.get_filename(),
|
||||
sys.getfilesystemencoding())
|
||||
name = os.path.split(filename)[1]
|
||||
folder = os.path.split(filename)[0]
|
||||
ix = self.get_selected_format_index()
|
||||
@@ -172,7 +174,8 @@ class Exporter:
|
||||
Perform the actual Save As/Export operation.
|
||||
Depending on the success status, set the text for the final page.
|
||||
"""
|
||||
filename = self.chooser.get_filename()
|
||||
filename = unicode(self.chooser.get_filename(),
|
||||
sys.getfilesystemencoding())
|
||||
Config.set(Config.RECENT_EXPORT_DIR,os.path.split(filename)[0])
|
||||
ix = self.get_selected_format_index()
|
||||
self.pre_save()
|
||||
|
Reference in New Issue
Block a user