Skip to content

Commit 96725d3

Browse files
committed
Backport pull request #2174 from Gizmokid2005/master
Update to check for proper UTF8 on Windows Corresponds to (from master): 710a20d
1 parent 8eb23cd commit 96725d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sopel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
loc = locale.getlocale()
3838
if sys.version_info.major > 2:
39-
if not loc[1] or 'UTF-8' not in loc[1]:
39+
if not loc[1] or ('UTF-8' not in loc[1] and 'utf8' not in loc[1]):
4040
print('WARNING!!! You are running with a non-UTF8 locale environment '
4141
'variables (e.g. LC_ALL is set to "C"), which makes Python 3 do '
4242
'stupid things. If you get strange errors, please set it to '

0 commit comments

Comments
 (0)