Browse Source

fix mac OSX startup - now it actually starts

master
Steffen Schaumburg 13 years ago
parent
commit
a5f9ea085e
  1. 5
      pyfpdb/Configuration.py

5
pyfpdb/Configuration.py

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

Loading…
Cancel
Save