Skip to content
Snippets Groups Projects
Commit 4ed9d2f5 authored by Thomas Kluyver's avatar Thomas Kluyver Committed by Karim Ahmed
Browse files

Try using C.UTF-8 locale

parent c480af25
No related branches found
No related tags found
1 merge request!984Try updating to Python 3.11 & update all deps
......@@ -585,7 +585,7 @@ def run(argv=None):
""" Run a calibration task with parser arguments """
# Ensure files are opened as UTF-8 by default, regardless of environment.
if "readthedocs.org" not in sys.executable:
locale.setlocale(locale.LC_CTYPE, ('en_US', 'UTF-8'))
locale.setlocale(locale.LC_CTYPE, ('C', 'UTF-8'))
if argv is None:
argv = sys.argv
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment