Skip to content

Bug Fix - Jasperstarter LF Line Endings#354

Open
Biele10 wants to merge 2 commits intoPHPJasper:masterfrom
Biele10:fix-unix-line-endings
Open

Bug Fix - Jasperstarter LF Line Endings#354
Biele10 wants to merge 2 commits intoPHPJasper:masterfrom
Biele10:fix-unix-line-endings

Conversation

@Biele10
Copy link

@Biele10 Biele10 commented Jan 30, 2026

I was encountering a bug when using the library where on my WSL server the jasperstarter file was not being found. Due to CRLF line endings, the shell script failed to execute on Linux systems. To fix this I ran dos2unix ./jasperstarter which updated the file to use LF line endings rather than CRLF ones.

I would recommend testing yourself on Windows and on Linux, I found that they both ran fine (as expected) but of course feel free to test it yourself, don't just take my word for it 😅.

I have updated the jasperstarter file to now have LF line endings and added a gitattribute file to ensure it stays that way. (Not sure why but Git changes LF file endings to use CRLF when committing unless explicitly stated NOT to in the .gitattribute.)

Hope this helps.

Any questions/issues, please let me know. :)

Jenson Kingman added 2 commits January 30, 2026 10:30
…er to prevent CRLF replacing LF. Tested both on Windows and Linux and the code worked correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant