cgag / loc

Count lines of code quickly.
MIT License
2.29k stars 126 forks source link

Files containg non ASCII non-UTF8 chars report zero lines #114

Open aslze opened 5 years ago

aslze commented 5 years ago

I saw some of my C++ files report all zero lines and did not understand why. Then I noticed they contained some non ASCII chars in comments or strings, and the files have Windows 1252 encoding. If I reencode those as UTF8, they work.

bnutzer commented 5 years ago

metoo, but german umlauts in ISO-8859 encoded files. Makes loc miss more than 50% of our code

bnutzer commented 5 years ago

Sample file:

testheader.h.txt

(.h file renamed to .txt due to github restrictions)