Blame SOURCES/authconfig-6.2.8-localetb.patch

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