Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

MacOS traditionally used `\r` for line endings. Unix (and thus macOS 10+) uses `\n` and Windows `\r\n`. Github isn't properly recognizing the files have classic MacOS line endings


Yup, this is it. Newline and CR + NL are the only recognized line endings on Github. You see this often on old source dumps (the Prince of Persia source release stands out, IIRC) of Classic Mac software.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: