cgag / loc

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

Line reports zero if file is not encoded in utf-8 #135

Open jiangzhe opened 3 years ago

jiangzhe commented 3 years ago

When checking some lua scripts encoded with gb18030(one of simplified Chinese encoding), loc reports zero. Is there a way to specify character encoding or just ignore the decoding(to utf8) error?