[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug: Literal strings in long format are not quite literal.
- From: Coda Highland <chighland@...>
- Date: Fri, 2 Nov 2012 11:35:08 -0700
On Fri, Nov 2, 2012 at 11:25 AM, spir <denis.spir@gmail.com> wrote:
> On 02/11/2012 16:06, Rapin Patrick wrote:
>>
>> On Lua 5.2 documentation, the next sentence immediately following your
>> citation states:
>> "Any kind of end-of-line sequence (carriage return, newline, carriage
>> return followed by newline, or newline followed by carriage return) is
>> converted to a simple newline."
>>
>> So this is not a bug, the behavior is documented as this.
>> Although personally, I would have preferred if new lines characters were
>> handled verbatim.
>
>
> What about file read (I guess Lua uses the C routine for text files, which
> does not let you the choice, IIRC).
>
> Denis
>
>
Theoretically that should be handled by the "b" flag on io.open(), on
platforms that care.
/s/ Adam