GNU bug report logs - #13394
Misalignment for "seq -w"

Previous Next

Package: coreutils;

Reported by: "Marcel Böhme" <hawkie <at> web.de>

Date: Wed, 9 Jan 2013 10:16:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: 13394 <at> debbugs.gnu.org, P <at> draigBrady.com, hawkie <at> web.de
Subject: bug#13394: Misalignment for "seq -w"
Date: Wed, 09 Jan 2013 13:42:26 +0100
On 01/09/2013 01:05 PM, Pádraig Brady wrote:
> Looks like a bug. I'll fix with:
> 
> diff --git a/src/seq.c b/src/seq.c
> index e1b467c..3eb53f8 100644
> --- a/src/seq.c
> +++ b/src/seq.c
> @@ -332,6 +332,8 @@ get_default_format (operand first, operand step, operand last)
>               last_width--;  /* don't include space for '.' */
>             if (last.precision == 0 && prec)
>               last_width++;  /* include space for '.' */
> +          if (first.precision == 0 && prec)
> +            first_width++;  /* include space for '.' */
>             size_t width = MAX (first_width, last_width);
>             if (width <= INT_MAX)
>               {

+1

Have a nice day,
Berny




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

Previous Next


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