diff options
author | Konrad Borowski <x.fix@o2.pl> | 2014-12-05 21:39:21 +0100 |
---|---|---|
committer | Konrad Borowski <x.fix@o2.pl> | 2014-12-05 21:39:21 +0100 |
commit | 9a34df604dfd9104f42f1c1948c32e2a2ccedd81 (patch) | |
tree | d7cb24762c9812a0dbbe6af09dc4831db8781583 /share/tools/web_config | |
parent | 2f96d2b19afc549d1857e849a2c0d4a572605a1c (diff) |
Make fish_config handle no LANG variable set.
Fixes #1849.
Diffstat (limited to 'share/tools/web_config')
-rwxr-xr-x | share/tools/web_config/webconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index eae7de8c..188963c9 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -39,7 +39,7 @@ def run_fish_cmd(text): # ensure that fish is using UTF-8 ctype = os.environ.get("LC_ALL", os.environ.get("LC_CTYPE", os.environ.get("LANG"))) env = None - if re.search(r"\.utf-?8$", ctype, flags=re.I) is None: + if ctype is None or re.search(r"\.utf-?8$", ctype, flags=re.I) is None: # override LC_CTYPE with en_US.UTF-8 # We're assuming this locale exists. # Fish makes the same assumption in config.fish |