From c726ae1a5f8e933c13746c1ad7fb236283559ca2 Mon Sep 17 00:00:00 2001 From: Ondrej Pesek Date: Sat, 17 Sep 2022 12:05:33 +0200 Subject: [PATCH] grass.py: fix missing parameters in gettext.install() fix #2507 --- lib/init/grass.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/init/grass.py b/lib/init/grass.py index c34f2176e2c..f3225f9e26e 100755 --- a/lib/init/grass.py +++ b/lib/init/grass.py @@ -1568,10 +1568,7 @@ def set_language(grass_config_dir): del os.environ["LC_ALL"] # Remove LC_ALL to not override LC_NUMERIC # From now on enforce the new language - if encoding: - gettext.install("grasslibs", gpath("locale"), codeset=encoding) - else: - gettext.install("grasslibs", gpath("locale")) + gettext.install("grasslibs", gpath("locale")) def lock_mapset(mapset_path, force_gislock_removal, user):