Skip to content

Commit c2268dd

Browse files
explicitly export LC_ALL for sphinx builds (#2708)
Co-authored-by: Bouwe Andela <[email protected]>
1 parent f1bc771 commit c2268dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@
113113

114114
# The language for content autogenerated by Sphinx. Refer to documentation
115115
# for a list of supported languages.
116-
# language = None
116+
# language = "en"
117+
# a lot of issues with importing esmvalcore modules due to
118+
# "incorrect" locale settings' this looks like a fix
119+
import locale
120+
locale.setlocale(locale.LC_ALL, 'C')
117121

118122
# There are two options for replacing |today|: either, you set today to some
119123
# non-false value, then it is used:

0 commit comments

Comments
 (0)