It's not required to pass a locale name to setlocale

This commit is contained in:
Mathieu Comandon 2019-08-31 13:28:47 -07:00
parent 4b44450608
commit e0b39596bf

View file

@ -24,11 +24,7 @@ if os.path.isdir(os.path.join(LAUNCH_PATH,"../lutris")):
else:
sys.path.insert(0, os.path.normpath(os.path.join(LAUNCH_PATH, "../lib/lutris")))
try:
locale_name = locale.getlocale()
locale.setlocale(locale.LC_ALL, locale_name)
except (locale.Error, ValueError):
sys.stderr.write("Unsupported locale %s. Try running with LC_ALL=C.\n" % locale_name)
locale.setlocale(locale.LC_ALL, "")
from lutris.gui.application import Application