lua-users home
lua-l archive

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


It was thus said that the Great Michal Kottman once stated:
> On Wed, Feb 15, 2023, 12:10 Johann ''Myrkraverk'' Oskarsson <
> johann+lua@watcom.pro> wrote:
> 
> > I know the number 13 is supposed to be unlucky, but this is a bit
> > ridiculous.  Why is it special?
> >
> 
> Just to provide context, what you are experiencing is the concept of "line
> feed" (LF) and "carriage return" (CR) and "newline" and how they are
> represented in different operating systems (Windows, Linux, ...) and
> runtimes (e.g. fopen with text/binary modes):
> https://en.m.wikipedia.org/wiki/%5Cn

  Nope.  Johann is opening the file in binary mode, not text mode.  What you
are describing doesn't apply for files open in binary mode.

  -spc