An encoding problem

65 views
Skip to first unread message

Marcin Borkowski

unread,
Feb 15, 2017, 12:23:14 AM2/15/17
to mu-discuss
Hi,

I fetched the git repo for mu/mu4e and recompiled today. Now, when
I try to send an email with some non-ascii letters (like "ą"), I see
some kind of temp buffer and Emacs asks me in what encoding to save it.
The message is sent all right, but this is a bit uncomfortable;-).

What may be happening?

Best,

--
Marcin Borkowski

Yuri D'Elia

unread,
Feb 15, 2017, 11:48:41 AM2/15/17
to mu-di...@googlegroups.com, Dirk-Jan C. Binnema
If you're running with emacs 26, it seems to be a regression:

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25645

Dirk-Jan: my current band-aid for this is:

diff --git i/mu4e/mu4e-compose.el w/mu4e/mu4e-compose.el
index 077b0e3a..67597683 100644
--- i/mu4e/mu4e-compose.el
+++ w/mu4e/mu4e-compose.el
@@ -257,7 +257,8 @@ If needed, set the Fcc header, and register the handler function."
(lexical-let ((maildir mdir) (old-handler message-fcc-handler-function))
(lambda (file)
(setq message-fcc-handler-function old-handler) ;; reset the fcc handler
- (write-file file) ;; writing maildirs files is easy
+ (let ((coding-system-for-write 'raw-text))
+ (write-file file)) ;; writing maildirs files is easy
(mu4e~proc-add file (or maildir "/")))))))) ;; update the database

(defvar mu4e-compose-hidden-headers

although, for an upstream bug of an unreleased version, I would be
skeptical in applying it officially.

Marcin Borkowski

unread,
Feb 15, 2017, 12:49:58 PM2/15/17
to mu-di...@googlegroups.com, Dirk-Jan C. Binnema

On 2017-02-15, at 17:48, Yuri D'Elia <wav...@thregr.org> wrote:

> On Wed, Feb 15 2017, Marcin Borkowski wrote:
>> I fetched the git repo for mu/mu4e and recompiled today. Now, when
>> I try to send an email with some non-ascii letters (like "ą"), I see
>> some kind of temp buffer and Emacs asks me in what encoding to save it.
>> The message is sent all right, but this is a bit uncomfortable;-).
>>
>> What may be happening?
>
> If you're running with emacs 26, it seems to be a regression:

Yes.

> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25645
>
> Dirk-Jan: my current band-aid for this is:
>
> diff --git i/mu4e/mu4e-compose.el w/mu4e/mu4e-compose.el
> index 077b0e3a..67597683 100644
> --- i/mu4e/mu4e-compose.el
> +++ w/mu4e/mu4e-compose.el
> @@ -257,7 +257,8 @@ If needed, set the Fcc header, and register the handler function."
> (lexical-let ((maildir mdir) (old-handler message-fcc-handler-function))
> (lambda (file)
> (setq message-fcc-handler-function old-handler) ;; reset the fcc handler
> - (write-file file) ;; writing maildirs files is easy
> + (let ((coding-system-for-write 'raw-text))
> + (write-file file)) ;; writing maildirs files is easy
> (mu4e~proc-add file (or maildir "/")))))))) ;; update the database
>
> (defvar mu4e-compose-hidden-headers
>
> although, for an upstream bug of an unreleased version, I would be
> skeptical in applying it officially.

Right. I'll just make this change myself. Thanks!

--
Marcin Borkowski
Reply all
Reply to author
Forward
0 new messages