From d44d1dda3e456d2a1215ae0d9b7cd373b5771cc1 Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Thu, 7 Apr 2011 14:47:55 +0200 Subject: [PATCH] show mac-specific error only on mac OSX --- pyfpdb/Configuration.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Configuration.py b/pyfpdb/Configuration.py index 3e5277b3..9c0f6055 100644 --- a/pyfpdb/Configuration.py +++ b/pyfpdb/Configuration.py @@ -210,9 +210,10 @@ DATABASE_TYPES = ( #LOCALE_ENCODING = locale.getdefaultlocale()[1] LOCALE_ENCODING = locale.getpreferredencoding() if LOCALE_ENCODING == "US-ASCII": - print _("Default encoding set to US-ASCII, defaulting to CP1252 instead -- If you're not on a Mac, please report this problem.") LOCALE_ENCODING = "cp1252" - + if (os.uname()[0]!="Darwin"): + print _("Default encoding set to US-ASCII, defaulting to CP1252 instead."), _("Please report this problem.") + # needs LOCALE_ENCODING (above), imported for sqlite setup in Config class below