nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] m_getfld() bug fix


From: David Levine
Subject: Re: [Nmh-workers] m_getfld() bug fix
Date: Sat, 07 Dec 2013 21:32:06 -0500

Ralph wrote:

> sed 's/^/ /' on both files beforehand would make -b happy?  Expected can
> be done once, actual each time...

That works.

> > 2) elinks inserts some non-breakable spaces (U+00A0), and GNU diff
> > doesn't recognize them as whitespace (my LANG is en_US.UTF-8).
> 
> Here, this elinks doesn't, even with that LANG, but it could well have
> changed.  Do the test scripts set the locale, e.g. LC_ALL, so we know
> elinks will be using UTF-8 for U+00A0?  If so, it can be replaced with
> sed.

I'm using ELinks 0.12pre6.
 
It happens in a different part of test-mhfixmsg, here:
  check that -reformat succeeds when decode of binary text fails

Your sed w/printf magic works beautifully.  I set the locale to
UTF-8 in that test.

> Is that what you're after?

Yes, thank you!

> BTW, the comment says that's there to squash adjacent blank lines but it
> would obviously do more than that.  This bit of awk does a `cat -s'.
>
>    awk '!length && e {next} {e = !length} 1'
>
> It's possible in sed too.  ;-)

No doubt :-)  I put in that awk magic.  It works and that's
what comments are for :-)

Valdis, the test passes now with elinks.

David



reply via email to

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