Commit 2757ba4
fix: read files in binary mode during pack to prevent content trimming on Windows
Text files were opened in text mode during packing, causing Python's universal
newline translation to convert CRLF to LF on Windows. This silently trimmed
file content when git's autocrlf converted LF to CRLF on checkout. Also
normalizes zip entry paths to use forward slashes on Windows.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c522b2e commit 2757ba4
3 files changed
Lines changed: 7 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
313 | 300 | | |
314 | 301 | | |
315 | 302 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments