From 1b0df7d6474119604c99cb82d9b526d779083562 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas.kluyver@xfel.eu>
Date: Wed, 17 Apr 2024 11:53:01 +0100
Subject: [PATCH] Remove setlocale() call (hopefully PEP 538 solved this)

---
 src/xfel_calibrate/calibrate.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/xfel_calibrate/calibrate.py b/src/xfel_calibrate/calibrate.py
index ebc1a54cd..90dd3c4b5 100755
--- a/src/xfel_calibrate/calibrate.py
+++ b/src/xfel_calibrate/calibrate.py
@@ -583,10 +583,6 @@ def make_par_table(parms):
 
 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, ('C', 'UTF-8'))
-
     if argv is None:
         argv = sys.argv
 
-- 
GitLab