[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] I need to learn more about MIME
From: |
Ralph Corderoy |
Subject: |
Re: [Nmh-workers] I need to learn more about MIME |
Date: |
Sat, 13 Sep 2014 17:16:03 +0100 |
Hi Norm,
> The problem was that, for reasons I do not remember, Chart.pj had
> Microsoft line endings and your "blanks", above includes '\r', and
> probably other white space. Confession: It took me an hour to figure
> that out.
Useful ways to look for odd bytes in a file ./foo. One approach is to
delete what you think is valid and see what's left.
tr -d '\012 -~' <foo | od -c
Or look at their frequencies.
$ tr -d '\012 -~' <foo | hexdump -ve '/1 "%02x\n"' | sort | uniq -c
2 0d
1 a3
1 c2
$
`cat -A' can also be helpful.
If you're having trouble tracking down the precise location then ask
grep for byte offsets.
LC_ALL=C grep -Eboa '[^ -~]+' foo | cat -A
Cheers, Ralph.