convert unicode filename to file system encoding
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -373,6 +373,8 @@ class Frame(wx.Frame):
|
|||||||
wx.SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR)
|
wx.SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR)
|
||||||
if dlg.ShowModal() == wx.ID_OK:
|
if dlg.ShowModal() == wx.ID_OK:
|
||||||
path = dlg.GetPath()
|
path = dlg.GetPath()
|
||||||
|
if isinstance(path, unicode):
|
||||||
|
path = path.encode(sys.getfilesystemencoding())
|
||||||
dlg.Destroy()
|
dlg.Destroy()
|
||||||
else:
|
else:
|
||||||
dlg.Destroy()
|
dlg.Destroy()
|
||||||
|
Reference in New Issue
Block a user