Skip to content

Commit 2e5c2f8

Browse files
Merge pull request #900 from arvidma/main
Use an UTF8 enabled locale for the run() environment.
2 parents 55a0acb + 59b5156 commit 2e5c2f8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ bugfixes
4444

4545
* fix #883: use HeadersParser to ensure only mime metadata in headers is used
4646
* fix #884: parse calver dates from versions with the v prefix
47+
* don't use a C locale without UTF-8 support, when running commands.
4748

4849
v7.1.0
4950
======

src/setuptools_scm/_run_cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def run(
142142
env=dict(
143143
avoid_pip_isolation(no_git_env(os.environ)),
144144
# os.environ,
145-
# try to disable i18n
146-
LC_ALL="C",
145+
# try to disable i18n, but still allow UTF-8 encoded text.
146+
LC_ALL="C.UTF-8",
147147
LANGUAGE="",
148148
HGPLAIN="1",
149149
),

0 commit comments

Comments
 (0)