From 3392f72b1ef7912d5574e5b13837740fba1e01a6 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas.kluyver@xfel.eu>
Date: Tue, 23 Apr 2024 17:25:48 +0100
Subject: [PATCH] Use the C locale in Slurm jobs

---
 bin/slurm_calibrate.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/slurm_calibrate.sh b/bin/slurm_calibrate.sh
index 721edbbe3..a600fa7ea 100755
--- a/bin/slurm_calibrate.sh
+++ b/bin/slurm_calibrate.sh
@@ -28,8 +28,8 @@ export CAL_NOTEBOOK_NAME="$notebook"
 # make sure we use agg backend
 export MPLBACKEND=AGG
 
-# Ensure Python uses UTF-8 for files by default
-export LANG=en_US.UTF-8
+# Use the default locale (Python will still use UTF-8 for text files)
+export LANG=C
 
 # start an ip cluster if requested
 if [ "${ipcluster_profile}" != "NO_CLUSTER" ]
-- 
GitLab