Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
4ed9d2f5
Commit
4ed9d2f5
authored
11 months ago
by
Thomas Kluyver
Committed by
Karim Ahmed
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Try using C.UTF-8 locale
parent
c480af25
No related branches found
No related tags found
1 merge request
!984
Try updating to Python 3.11 & update all deps
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xfel_calibrate/calibrate.py
+1
-1
1 addition, 1 deletion
src/xfel_calibrate/calibrate.py
with
1 addition
and
1 deletion
src/xfel_calibrate/calibrate.py
+
1
−
1
View file @
4ed9d2f5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment