Skip to content
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

ER: sciibin wrapper that removes ^M from end of line #38

Open
IvanExpert opened this issue Oct 25, 2015 · 1 comment
Open

ER: sciibin wrapper that removes ^M from end of line #38

IvanExpert opened this issue Oct 25, 2015 · 1 comment

Comments

@IvanExpert
Copy link
Contributor

Some BinSCII files have CRLF at the end of the line, and sciibin is too stupid to handle them. Sciibin itself could probably be fixed, or it could be called by a wrapper which performs tr -d '\r' first, if "file xxx.bsq | grep -q CRLF" is true

@knghtbrd
Copy link
Member

Can sciibin handle blank lines in the input? ie, \r\r? Or long lines?

I've encountered too many combinations of CR, LF, CRLF, and random mixes to think that the wrapper is quite that easy. :) A tool to normalize text file line endings to CR, LF, or CRLF that more or less didn't care about which was on the input might be useful in general. Certainly such a tool would be useful if trying to use git with Apple // or Macintosh source code. The compiler SHOULDN'T care about CR/LF/CRLF, but it possibly does, and the editor definitely will. One of the reasons I like vim so much despite being a vi-type editor with "typing" and "beep" modes is that it will attempt to be intelligent regarding line endings and work regardless of which one you use, as long as you're consistent about it.

Which reminds me that I need to test a few Linux editors other than vim and make sure that one of those is available on A2CLOUD. Nano might have the feature. Or it might just support LF and CRLF. A patch may be accepted if needed, but that won't be in wheezy or jessie. Willing to provide our own packages for that when we get there.

That'd be an issue for A2CLOUD I suppose. In fact it is, RasppleII/a2cloud#6.

@IvanExpert IvanExpert changed the title ER: sciibin wrapper that removes ^M from end of ilne ER: sciibin wrapper that removes ^M from end of line Oct 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants