Log the exception when writing to file fails.
Set the default encoding from wxGetDefaultPyEncoding again. Recover from encoding errors when writing the memory file. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -17,10 +17,9 @@ import sys
|
||||
progname = 'XRCed'
|
||||
version = '0.1.5-2'
|
||||
# Can be changed to set other default encoding different
|
||||
defaultEncoding = ''
|
||||
#defaultEncoding = ''
|
||||
# you comment above and can uncomment this:
|
||||
#import wx
|
||||
#defaultEncoding = wx.GetDefaultPyEncoding()
|
||||
defaultEncoding = wxGetDefaultPyEncoding()
|
||||
|
||||
try:
|
||||
True
|
||||
|
Reference in New Issue
Block a user