Commit 6b47d76
fix(installer): write log file as UTF-8 so non-ASCII chars don't error
On Windows, `logging.FileHandler` opens the log file with
`locale.getpreferredencoding()` when no encoding is passed — cp1252 on
a US-English install. Lines containing non-ASCII glyphs like ✓ (used in
prereq-status output) hit UnicodeEncodeError on emit; the logging
module catches it and prints `--- Logging error ---` plus a traceback
to stderr. The install still completes, but the noise is alarming.
Add `"encoding": "utf-8"` to the file-handler dictConfig so the file is
opened in UTF-8 regardless of locale.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5f9e827 commit 6b47d76
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
687 | 691 | | |
688 | 692 | | |
689 | 693 | | |
| |||
0 commit comments