Skip to content

Commit 6eb8ec5

Browse files
authored
python 3.8 backward compatible
1 parent 473ae47 commit 6eb8ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmdstanpy/utils/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def do_command(
4848
stderr=subprocess.STDOUT, # avoid buffer overflow
4949
env=os.environ,
5050
universal_newlines=True,
51-
encoding=locale.getencoding(),
51+
encoding=locale.getdefaultlocale()[1],
5252
)
5353
while proc.poll() is None:
5454
if proc.stdout is not None:

0 commit comments

Comments
 (0)