Little bug fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-03-21 22:35:49 +00:00
parent 901384b2fc
commit 0290bdd203
2 changed files with 4 additions and 1 deletions

View File

@@ -826,6 +826,7 @@ class App(wxApp):
global debug global debug
# Process comand-line # Process comand-line
try: try:
opts = args = [] #give empty values in case of exception
opts, args = getopt.getopt(sys.argv[1:], 'dhiv') opts, args = getopt.getopt(sys.argv[1:], 'dhiv')
except getopt.GetoptError: except getopt.GetoptError:
if wxPlatform != '__WXMAC__': # macs have some extra parameters if wxPlatform != '__WXMAC__': # macs have some extra parameters

View File

@@ -9,6 +9,8 @@ from globals import *
from params import * from params import *
currentEncoding = wxLocale_GetSystemEncodingName() currentEncoding = wxLocale_GetSystemEncodingName()
if not currentEncoding:
currentEncoding = 'ascii'
# Base class for interface parameter classes # Base class for interface parameter classes
class xxxNode: class xxxNode: