Blame SOURCES/authconfig-6.2.8-localetb.patch

977b74
diff -up authconfig-6.2.8/authconfig-gtk.py.localetb authconfig-6.2.8/authconfig-gtk.py
977b74
--- authconfig-6.2.8/authconfig-gtk.py.localetb	2015-07-03 10:59:22.000000000 +0200
977b74
+++ authconfig-6.2.8/authconfig-gtk.py	2015-07-03 11:14:22.666532393 +0200
977b74
@@ -30,7 +30,10 @@ _ = gettext.lgettext
977b74
 import locale
977b74
 import dbus
977b74
 
977b74
-locale.setlocale(locale.LC_ALL, '')
977b74
+try:
977b74
+	locale.setlocale(locale.LC_ALL, '')
977b74
+except locale.Error:
977b74
+	sys.stderr.write('Warning: Unsupported locale setting.\n')
977b74
 
977b74
 firstbootservices = [
977b74
 	"autofs",
977b74
diff -up authconfig-6.2.8/authconfig.py.localetb authconfig-6.2.8/authconfig.py
977b74
--- authconfig-6.2.8/authconfig.py.localetb	2015-07-03 10:59:22.000000000 +0200
977b74
+++ authconfig-6.2.8/authconfig.py	2015-07-03 11:14:01.694065135 +0200
977b74
@@ -28,7 +28,11 @@ import gettext, os, signal, sys
977b74
 _ = gettext.lgettext
977b74
 from optparse import OptionParser, IndentedHelpFormatter
977b74
 import locale
977b74
-locale.setlocale(locale.LC_ALL, '')
977b74
+
977b74
+try:
977b74
+	locale.setlocale(locale.LC_ALL, '')
977b74
+except locale.Error:
977b74
+	sys.stderr.write('Warning: Unsupported locale setting.\n')
977b74
 
977b74
 def runsAs(name):
977b74
 	return sys.argv[0].find(name) >= 0