From 21b18b6da4fc60f79f7c8c124f9429218b3f5439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 3 Dec 2024 20:25:13 +0100 Subject: [PATCH 1/2] docs: Mention quirks of the annoying operating system Issue-23: https://github.com/pawamoy/duty/issues/23 --- docs/usage.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/usage.md b/docs/usage.md index 46d85a0..166412a 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -778,6 +778,8 @@ It is not possible to capture only stdout, or only stderr, and let the other one be printed to the console. Capturing one is capturing both, but discarding the other. +WARNING: **Windows quirks.** On Windows you might need to set the following environment variables to allow proper output capture: `PYTHONLEGACYWINDOWSSTDIO=1`, `PYTHONUTF8=1`, `PYTHONIOENCODING=UTF8`. + ### Formatting duty output Thanks to its underlying [`failprint`](https://github.com/pawamoy/failprint) dependency, From bab683fc95c8cb474e6b2bc309a1e9a062417db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 3 Dec 2024 21:23:04 +0100 Subject: [PATCH 2/2] Update docs/usage.md --- docs/usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.md b/docs/usage.md index 166412a..e5b029b 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -778,7 +778,7 @@ It is not possible to capture only stdout, or only stderr, and let the other one be printed to the console. Capturing one is capturing both, but discarding the other. -WARNING: **Windows quirks.** On Windows you might need to set the following environment variables to allow proper output capture: `PYTHONLEGACYWINDOWSSTDIO=1`, `PYTHONUTF8=1`, `PYTHONIOENCODING=UTF8`. +WARNING: **Windows quirks.** On Windows you might need to set the following environment variables to allow proper output capture: `PYTHONLEGACYWINDOWSSTDIO=1`, `PYTHONUTF8=1`, `PYTHONIOENCODING=UTF8`. If the `✓` and `✗` characters are mangled, try changing them by [customizing the output format](#formatting-duty-output). ### Formatting duty output