]> git.saurik.com Git - wxWidgets.git/commitdiff
convert unicode filename to file system encoding
authorRobin Dunn <robin@alldunn.com>
Wed, 11 Oct 2006 23:48:59 +0000 (23:48 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 11 Oct 2006 23:48:59 +0000 (23:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/tools/XRCed/xrced.py

index f4ad0cfcfa1708cbe66b36ddec32ea791b7b4e81..e47b62f287be10d9ebc04a6e03964e9268d3719b 100644 (file)
@@ -373,6 +373,8 @@ class Frame(wx.Frame):
                                wx.SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR)
             if dlg.ShowModal() == wx.ID_OK:
                 path = dlg.GetPath()
+                if isinstance(path, unicode):
+                    path = path.encode(sys.getfilesystemencoding())
                 dlg.Destroy()
             else:
                 dlg.Destroy()