GNU bug report logs - #10383
24.0.91; (prefer-coding-system 'utf-8-with-signature) breaks the world

Previous Next

Package: emacs;

Reported by: Eric Hanchrow <eric.hanchrow <at> gmail.com>

Date: Tue, 27 Dec 2011 22:28:02 UTC

Severity: normal

Found in version 24.0.91

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kenichi Handa <handa <at> m17n.org>
Cc: eric.hanchrow <at> gmail.com, 10383 <at> debbugs.gnu.org
Subject: bug#10383: 24.0.91; (prefer-coding-system 'utf-8-with-signature) breaks the world
Date: Wed, 28 Dec 2011 03:51:38 -0500
> From: Kenichi Handa <handa <at> m17n.org>
> Date: Wed, 28 Dec 2011 17:07:43 +0900
> Cc: 10383 <at> debbugs.gnu.org
> 
> By the way, as a result, now
> 
>     (prefer-coding-system 'utf-8-with-signature)
> 
> does not change default-file-coding-system.  I'm not sure
> what is the intention of preferring utf-8-with-signature,
> one may want default-file-coding-system be set to utf-8 in
> such a case.  But, doing that automatically is too
> heuristic.

How about making prefer-coding-system display a message suggesting
that the user considers setting default-file-coding-system to utf-8?

> Another possibility is that what actually wanted is such a coding as
> utf-8-with-signature-on-decoding-only (i.e. on decoding, BOM is
> recognized, but on encoding, don't produce BOM).

If we can express this with current facilities, I'd say include that
information in the above-mentioned message.




This bug report was last modified 13 years and 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.