Skip to content

Commit 710a20d

Browse files
authored
Merge pull request #2174 from Gizmokid2005/master
Update to check for proper UTF8 on Windows
2 parents a04469a + 249a05a commit 710a20d

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
@@ -34,7 +34,7 @@
3434
]
3535

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

0 commit comments

Comments
 (0)