lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Dec 04, 2013 at 07:09:30AM +1300, Geoff Leyland wrote:
>  - read lines with “*l” and so are opinionated about what constitutes a newline

Really?  "*l" checks for "\n", which if you've opened your file in text
mode it should be; as the C library will do line ending translation if
your OS got that wrong.

If you want to import CSV files that come from a different OS that gets
it wrong, then that's a problem, but changing them to use a different
function rather than read "*l" doesn't seem like that much of a
hardship.

B.