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