[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Recognize '\r' for line buffering purposes
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] Recognize '\r' for line buffering purposes |
Date: |
Wed, 21 May 2014 15:36:42 +0200 |
User-agent: |
Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) |
Doug Evans <address@hidden> skribis:
> On Fri, May 16, 2014 at 2:39 AM, Ludovic Courtès <address@hidden> wrote:
>> WDYT?
>>
>> I’ll push it shortly if there are no objections.
>>
>> Ludo’.
>
> Hi.
> For reference sake, I checked glibc and it only checks '\n' (AFAICT).
> ref: libio/fileops.c
Indeed.
It seems best to stick with libc’s behavior, so I ended up leaving
_IOLBF behavior unchanged (and I realized that the use case I was
interested in could be addressed differently anyway.) I pushed a test
case for _IOLBF since I realized we didn’t have any.
Thanks for your feedback!
Ludo’.