We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca680c6 commit 5ffbfa3Copy full SHA for 5ffbfa3
src/hatch_cython/plugin.py
@@ -1,3 +1,4 @@
1
+import locale
2
import os
3
import re
4
import subprocess
@@ -311,7 +312,8 @@ def build_ext(self):
311
312
stderr=subprocess.STDOUT,
313
env=self.options.envflags.env,
314
)
- stdout = process.stdout.decode("utf-8")
315
+ encoding = locale.getpreferredencoding()
316
+ stdout = process.stdout.decode(encoding, errors="replace")
317
if process.returncode:
318
self.app.display_error(f"cythonize exited non null status {process.returncode}")
319
self.app.display_error(stdout)
0 commit comments