drh / lcc

The lcc retargetable ANSI C compiler

Home Page:https://drh.github.io/lcc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

src/*.md files are copied incorrectly from repository

mfe5003 opened this issue · comments

The src/*.md files have some issue where all are cloned from the github repository incorrectly.
This manifests, when trying to compile dagcheck.c, with the error messages:

line 1: invalid character `%'
line 1: invalid character `{'
line 1: invalid character `\015'
line 2: invalid character `#'
line 2: syntax error
line 2: invalid character `\015'
line 3: syntax error
line 3: invalid character `;'
line 3: invalid character `\015'
line 4: invalid character `#'
...

This might be something related to me using WSL, but I was tipped off to the issue by this google groups post: here.

Workaround is to download all the *.md files through the github "raw" web interface for each file.

lburg doesn't like CRLF line terminators. Your git config core.autocrlf settings are converting the LF line terminators to CRLF.

Thanks, autocrlf is in fact true for me