GNU bug report logs - #13080
[PATHC] improve error reporting

Previous Next

Package: coreutils;

Reported by: "Alexandru Cojocaru" <cojocaru_alexandru <at> gmx.com>

Date: Tue, 4 Dec 2012 16:48:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 13080 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: 13080 <at> debbugs.gnu.org, cojocaru_alexandru <at> gmx.com
Subject: Re: bug#13080: [PATHC] improve error reporting
Date: Wed, 05 Dec 2012 13:55:32 +0000
[Message part 1 (text/plain, inline)]
On 12/05/2012 01:57 AM, Pádraig Brady wrote:

> Keying on 0x80 doesn't seem right.
> I'll apply this hunk instead in your name.
> Please confirm.
>
> diff --git a/src/cut.c b/src/cut.c
> index 4219d24..f2e63dc 100644
> --- a/src/cut.c
> +++ b/src/cut.c
> @@ -846,7 +846,7 @@ main (int argc, char **argv)
>     if (operating_mode == undefined_mode)
>       FATAL_ERROR (_("you must specify a list of bytes, characters, or fields"));
>
> -  if (delim != '\0' && operating_mode != field_mode)
> +  if (delim_specified && operating_mode != field_mode)
>       FATAL_ERROR (_("an input delimiter may be specified only\
>    when operating on fields"));

I got confirmation of the adjustment privately,
so I'm going to push the attached two patches,
which augment/adjust the cut test accordingly.

thanks,
Pádraig.
[cut-d-nul.diff (text/x-patch, attachment)]

This bug report was last modified 12 years and 230 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.