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

To reply to this bug, email your comments to 34705 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-diffutils <at> gnu.org:
bug#34705; Package diffutils. (Sat, 02 Mar 2019 01:01:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mallika Bachan <mallika.bachan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Sat, 02 Mar 2019 01:01:02 GMT) Full text and rfc822 format available.

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

From: Mallika Bachan <mallika.bachan <at> gmail.com>
To: bug-diffutils <at> gnu.org
Subject: Cannot get white space to be ignored
Date: Fri, 1 Mar 2019 15:19:23 -0800
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

Information forwarded to bug-diffutils <at> gnu.org:
bug#34705; Package diffutils. (Sat, 02 Mar 2019 17:17:02 GMT) Full text and rfc822 format available.

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 104 days ago.

Previous Next


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