-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/txtar: Parse does not cope with CR-LF line endings #59264
Comments
Although we can't quite use the x/tools/txtar implementation in its entirety (golang/go#59264 needs to be fixed first, and we implement some other functions that x/tools/txtar doesn't (yet?) have, we can at least alias its types, which makes it possible to work with other packages that use those types.
Although we can't quite use the x/tools/txtar implementation in its entirety (golang/go#59264 needs to be fixed first, and we implement some other functions that x/tools/txtar doesn't (yet?) have, we can at least alias its types, which makes it possible to work with other packages that use those types.
Although we can't quite use the x/tools/txtar implementation in its entirety (golang/go#59264 needs to be fixed first, and we implement some other functions that x/tools/txtar doesn't (yet?) have, we can at least alias its types, which makes it possible to work with other packages that use those types.
Agreed, that should probably be fixed.
I would say that it should not. |
@bcmills I would like to get on with it |
Should parsed structure be formated back to string using
should be formated to
or
or even version with only |
Good question. Perhaps add a |
Change https://go.dev/cl/483335 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Ran this testscript test:
What did you expect to see?
A passing test.
What did you see instead?
The logic inside the
txtar
package does not properly recognise CR-LF files.It's an open question whether the logic should normalize
\r\n
to\n
.The text was updated successfully, but these errors were encountered: