[Top][All Lists]

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

Re: smtpmail and ~/.authinfo

From: Eli Zaretskii
Subject: Re: smtpmail and ~/.authinfo
Date: Mon, 26 Sep 2011 20:15:52 +0300

> From: Ted Zlatanov <address@hidden>
> Date: Mon, 26 Sep 2011 11:53:18 -0500
> >> Could you help me (or point me to the right examples) to:
> >> 
> >> - always create/write a file in UTF-8 on every platform
> EZ> You mean, force Emacs to encode .authinfo in UTF-8 when creating it?
> EZ> I guess that's the job for file-coding-system-alist.
> So I would just override that when writing the netrc/authinfo file.  I
> can't imagine any value in letting the user override the UTF-8 encoding,
> can you?

No, I cannot.

> >> - opportunistically open the file in binary, raw-text, UTF-8, etc. on
> >> every platform
> EZ> Sorry, I don't understand what you'd like to do.  Please elaborate,
> EZ> and I will gladly try to help.
> There must be netrc/authinfo files written in binary encoding because
> that was the default.  I'd like to open them, but also open UTF-8
> encoded netrc/authinfo files, and also accept raw-text or any other
> reasonably guessed encoding.  For UTF-8 there are heuristics but Emacs
> has them built-in, right?  So I don't have to write special code to
> guess?
> The alternative is to try as utf-8, then try binary, then give up.  But
> that's less friendly to the user I think.

Just let Emacs do its usual guesswork.

reply via email to

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