nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] mojibake in UTF-8 encoded quoted-printable messages


From: Joel Uckelman
Subject: Re: [Nmh-workers] mojibake in UTF-8 encoded quoted-printable messages
Date: Thu, 24 Oct 2013 11:00:42 -0700

Thus spake Ken Hornstein:
> >Challenge accepted:
> >
> >mhshow-show-text/html: %p/usr/bin/lynx `echo %a | sed -n 
> >'s/.*charset="\([^"]\+\)".*/-assume_charset=\1/p'` -force_html -dump '%f' | 
> >less
> 
> Well played :-)
> 
> Although ... will that end up with a zero-length parameter to lynx?  Or
> will that be eaten by the shell?

The subshell prints nothing when there's no charset, so what the shell
sees is two consecutive spaces between "lynx" and "-force_html". (I
tested this.)

> I think you would admit that a %-escape
> unambiguously specifying the character set would be preferrable :-)

Definitely. I'm happy that I can do this, not happy that I must. Looking
forward to a new %-escape in 1.6...
 
-- 
J.



reply via email to

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