GNU bug report logs - #34705
Cannot get white space to be ignored

Previous Next

Package: diffutils;

Reported by: Mallika Bachan <mallika.bachan <at> gmail.com>

Date: Sat, 2 Mar 2019 01:01:01 UTC

Severity: normal

Full log


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

From: Akira Shiratsuki <p50p100 <at> yahoo.co.jp>
To: Mallika Bachan <mallika.bachan <at> gmail.com>
Cc: 34705 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#34705: Cannot get white space to be ignored
Date: Sat, 2 Mar 2019 20:27:08 +0900
Hi,

It's below. So white-space doesn't include Non-breaking space('\xa0').

From NEWS:
 User-visible changes in version 2.4:
 * cmp and diff now conform to POSIX 1003.2-1992 (ISO/IEC 9945-2:1993)
   if the underlying system conforms to POSIX:
   - ``White space'' is now whatever C's `isspace' says it is.

"info isspace" says:
        isspace()
               checks for white-space characters.  In the "C" and "POSIX" locales, these are: space, form-feed ('\f'),
               newline ('\n'), carriage return ('\r'), horizontal tab ('\t'), and vertical tab ('\v').

Akira

On Fri, 1 Mar 2019 15:19:23 -0800
Mallika Bachan <mallika.bachan <at> gmail.com> wrote:

> Hi,
> 
> I'm confused why white space isn't being ignored:
> 
> MALLIKA-MBP:~ mallikab$ diff -w 17 18
> 
> 3c3
> 
> <   Product:      fec-secure
> 
> ---
> 
> >   Product:      fec-secure
> 
> MALLIKA-MBP:~ mallikab$
> 
> I have diff (GNU diffutils) 2.8.1
> 
> both on my Mac as well as the Linux box at work
> 
> 
> What does "Ignore all white space" mean?
> 
> That I'm still gonna get output?
> 
> 
> -Mallika




This bug report was last modified 6 years and 105 days ago.

Previous Next


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