| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -731,9 +731,12 @@ def collect_windows(info_add): | |||
| 731 | 731 | ||
| 732 | 732 | import subprocess | |
| 733 | 733 | try: | |
| 734 | + # When wmic.exe output is redirected to a pipe, | ||
| 735 | + # it uses the OEM code page | ||
| 734 | 736 | proc = subprocess.Popen(["wmic", "os", "get", "Caption,Version", "/value"], | |
| 735 | 737 | stdout=subprocess.PIPE, | |
| 736 | 738 | stderr=subprocess.PIPE, | |
| 739 | + encoding="oem", | ||
| 737 | 740 | text=True) | |
| 738 | 741 | output, stderr = proc.communicate() | |
| 739 | 742 | if proc.returncode: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments