We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb23cd commit 96725d3Copy full SHA for 96725d3
sopel/__init__.py
@@ -36,7 +36,7 @@
36
37
loc = locale.getlocale()
38
if sys.version_info.major > 2:
39
- if not loc[1] or 'UTF-8' not in loc[1]:
+ if not loc[1] or ('UTF-8' not in loc[1] and 'utf8' not in loc[1]):
40
print('WARNING!!! You are running with a non-UTF8 locale environment '
41
'variables (e.g. LC_ALL is set to "C"), which makes Python 3 do '
42
'stupid things. If you get strange errors, please set it to '
0 commit comments