View Single Post
Old 04-23-2015, 08:41 PM   #39
shalym
Wizard
shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.
 
shalym's Avatar
 
Posts: 3,058
Karma: 54671821
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
Quote:
Originally Posted by eschwartz View Post
The tests conclusively point to the issue of using CRLF, insomuch as there are utilities or manual editing for switching to *nix line endings, and that is the specific action that gets things working.

Regardless, if you create or edit a file using Windows' built-in Notepad, you will be working with CRLF. That may or may not blow up on you. I have no idea whether this specific file must use *nix line endings (I was not the one who said it was required), but of a surety, there are things that do depend on it.
(As for html and javascript, line endings are optional, so naturally there would be no problem either way. vbscript is a Windows thing, so if it depends on anything it will be DOS line endings...)

One way to test your claim (since it runs contradictory to the experience of, well, every other test by any other human being on the planet) would be to open one of those files with Notepad++, which will tell you whether the file uses *nix or DOS line endings.


And check the manual for the transfer program you use, to find out if it has the helpful feature of auto-correcting line endings. I am pretty sure Filezilla at least does that. EDIT: Yup -- https://wiki.filezilla-project.org/Data_Type
Ok...so I've downloaded notepad++ and looked at 5 different scripts that I've either created or edited using notepad.

What am I supposed to be seeing? As far as I can tell the only difference is that it adds pretty colors to highlight different elements of the script, kind of like other script editors do. I see nothing to indicate anything about what kind of line endings the file is using. Where would I see that?

Shari
shalym is offline   Reply With Quote