Commit a0799c7
Uwe Janke
v1.8.17.0: Fix mojibake corruption risk in Docs/_gen-reference.ps1
Get-Content $file -Raw (without -Encoding UTF8) read sqmSQLTool-reference.html
(no BOM) using the system ANSI codepage under Windows PowerShell 5.1, mis-decoding
multi-byte UTF-8 characters (box-drawing chars, emoji) and permanently corrupting
them on write-back. Found while regenerating the reference after today's
docstring updates - a plain `powershell -File _gen-reference.ps1` run produced
mojibake across the whole file; discarded and fixed instead of committing it.
Added -Encoding UTF8. Verified clean under both PS 5.1 and PS 7 - the reference
content itself was already current (todays changes only touched .DESCRIPTION/
.PARAMETER text, which this generator does not read; only .SYNOPSIS/.EXAMPLE
feed the reference).1 parent 4e12bd1 commit a0799c7
3 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
3 | 19 | | |
4 | 20 | | |
5 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments