[Top][All Lists]

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

Re: [vile] writing an empty file with nonewline

From: Thomas Dickey
Subject: Re: [vile] writing an empty file with nonewline
Date: Mon, 22 May 2006 21:15:01 -0400 (EDT)

On Mon, 22 May 2006, Thomas Dickey wrote:

On Mon, 22 May 2006, Brendan O'Dea wrote:

There seems to be a problem when writing out an empty file when
nonewline is set (see
Not sure exactly where the root of the problem lies; setup_file_region()
seems to copy that -1 value from bp->b_bytecount, which should similarly
be unsigned.

The problem is in bsizes(), has been there since I changed B_COUNT to an unsigned a year ago (21 May 2005). Here's a paste from the fix I just
checked in:

Here's an interim patch:

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]