mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1939] [CLOSED] setup: write run-<model>.bat and the build .bat with single CRLF line ends #3767
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3767
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1939
Author: @markusrenneronline
Created: 10/11/2026
Status: ❌ Closed
Base:
main← Head:fix/setup-bat-crlf📝 Commits (1)
87c2fd9setup: write run-.bat and the build .bat with single CRLF line ends (text mode doubled the CR)📊 Changes
2 files changed (+35 additions, -2 deletions)
View changed files
📝
setup.py(+3 -2)➕
tools/test_setup_run_script_newlines.py(+32 -0)📄 Description
write_run_script()and the Windows build step write their.batfiles with explicit\r\n, but throughPath.write_text()in text mode. On Windows text mode translates every\nagain, so the files end up with\r\r\n(seen in a freshly writtenrun-coder-iq1_m.bat:@echo off\r\r\n).cmdtolerates it, so nothing breaks today, but the files are not what the code intends.setup.py:newline=""in bothwrite_text()calls (run script, build.bat), so the\r\nare written as is.tools/test_setup_run_script_newlines.py: writes the run script withWINpatched into a temp folder and checks for single CRLF line ends. On Windows it fails without the fix and passes with it.No other behavior changes. (Two serve tests also write
\r\nthroughwrite_text; left as they are, they only create helper scripts.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.