* Martin-Éric Racine:

> When piping text into heirloom-mailx, it fails to specify the charset used 
> with
> the From: line if the name inherited from /etc/passwd is in UTF-8.
>
> cat file | mail -s "some subject" u...@domain.ltd
>
> q-funk:x:1000:1000:Martin-Éric Racine,,,:/home/q-funk:/bin/bash

As far as I know, using non-ASCII characters in the GECOS field of
/etc/passwd is not specified at all. So far, I haven't found anything
Debian's main policy file, passwd(5), the adduser(8) and useradd(8)
manpages, nor the documentation of base-passwd. (If you have found more
than I, let me know.)

>From an application's standpoint, I'd tend to assume the GECOS field
either to be a comma-sparated string of ASCII characters or a
comma-separated string of byte values.

Yes, I can see how useless both options are is your case. :-)

Basing mailx' interpretation of the GECOS field on the sendcharset
variable, as you suggested is probably not a good idea.

> Message-Id: <1252199465.516755.6377.nullmai...@iki.fi>
> From: Martin-?ric Racine <q-f...@iki.fi>

As a workaround, please  try setting your real name to a pre-encoded
string in the .mailrc.

Cheers,
-Hilko



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to