diff options
| author | AGInformatique81 <327468329+AGInformatique81@users.noreply.github.com> | 2026-11-23 02:22:00 +0100 |
|---|---|---|
| committer | AGInformatique81 <327468329+AGInformatique81@users.noreply.github.com> | 2026-11-23 02:22:00 +0100 |
| commit | ed988486b86b36ab3dfe9e4c468e810231c19294 (patch) | |
| tree | cd5c6a250f48c27fb9df755e9358ed0cbca4fcd9 /docs/boot.md | |
| parent | 03b09a086592a197db64d91655c6e65c30764d96 (diff) | |
Read UTF-16 boot trace logs from Windows PowerShell
Diffstat (limited to 'docs/boot.md')
| -rw-r--r-- | docs/boot.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/boot.md b/docs/boot.md index 4738b9a73..4ee9a00d9 100644 --- a/docs/boot.md +++ b/docs/boot.md | |||
| @@ -40,10 +40,8 @@ $log = Join-Path $env:TEMP d3d12.log | |||
| 40 | python -I tools\boot_trace.py $trace --d3d12 $log | 40 | python -I tools\boot_trace.py $trace --d3d12 $log |
| 41 | ``` | 41 | ``` |
| 42 | 42 | ||
| 43 | Windows PowerShell 5.1 writes `2>` as UTF-16LE; the tool names that file instead of parsing it. Use | 43 | The tool reads UTF-8 and UTF-16 with a byte-order mark, including the UTF-16LE log that Windows PowerShell 5.1 |
| 44 | `2>&1 | Out-File -Encoding utf8 $log` there, or PowerShell 7, which defaults to UTF-8. The tool strips the BOM that | 44 | writes with `2>`. It also recognizes the `program.exe : ` prefix that PowerShell 5.1 adds to the first stderr line. |
| 45 | 5.1 writes with `utf8`, and accepts the `program.exe : ` prefix 5.1 puts in front of the first stderr line when it | ||
| 46 | turns it into an error record, so that call is not lost. `cmd /c` writes the lines unchanged. | ||
| 47 | 45 | ||
| 48 | Linux under Wine (a cross build made with xwin, or the `runtime-windows` artifact; the backend must be Vulkan): | 46 | Linux under Wine (a cross build made with xwin, or the `runtime-windows` artifact; the backend must be Vulkan): |
| 49 | 47 | ||