STINNER Victor <vstin...@python.org> added the comment: > When writing to a pipe, wmic.exe hard codes using the process OEM code page > (i.e. CP_OEMCP). If it matters, running wmic.exe with subprocess should use > encoding='oem' instead of text=True.
Oh ok, I wrote PR 30890 to fix the wmic.exe encoding. I would prefer to avoid a named temporary file if possible, until it's really needed. I'm only aware of the Fedora operating system which made fun of non-ASCII users once with "Fedora release 19 (Schrödinger's Cat)": https://lwn.net/Articles/545741/ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45382> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com