fix mac OSX startup - now it actually starts

This commit is contained in:
Steffen Schaumburg 2011-04-09 20:36:04 +02:00
parent eac7ac5781
commit a5f9ea085e

View File

@ -207,9 +207,8 @@ DATABASE_TYPES = (
DATABASE_TYPE_MYSQL, DATABASE_TYPE_MYSQL,
) )
LOCALE_ENCODING = locale.getdefaultlocale()[1] LOCALE_ENCODING = locale.getpreferredencoding()
#LOCALE_ENCODING = locale.getpreferredencoding() #this breaks on Mac OSX - please leave this comment if LOCALE_ENCODING in ("US-ASCII", "", None):
if LOCALE_ENCODING == "US-ASCII":
LOCALE_ENCODING = "cp1252" LOCALE_ENCODING = "cp1252"
if (os.uname()[0]!="Darwin"): if (os.uname()[0]!="Darwin"):
print _("Default encoding set to US-ASCII, defaulting to CP1252 instead."), _("Please report this problem.") print _("Default encoding set to US-ASCII, defaulting to CP1252 instead."), _("Please report this problem.")