nmh-workers
[Top] [All Lists]

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

2013-12-07 20:32:35
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

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>