From cc202d9b5e6de31b330f622c828903b5a58b357f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 11 Oct 2006 23:48:59 +0000 Subject: [PATCH] convert unicode filename to file system encoding git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/tools/XRCed/xrced.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wxPython/wx/tools/XRCed/xrced.py b/wxPython/wx/tools/XRCed/xrced.py index f4ad0cfcfa..e47b62f287 100644 --- a/wxPython/wx/tools/XRCed/xrced.py +++ b/wxPython/wx/tools/XRCed/xrced.py @@ -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()