From: Kenichi Handa <handa@m17n.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: tlikonen@iki.fi, 3607@emacsbugs.donarmstrong.com
Subject: bug#3607: 23.0.94; odd character in fringe.el
Date: Mon, 29 Jun 2009 16:49:32 +0900 [thread overview]
Message-ID: <E1MLBcK-0001ZB-Vv@etlken> (raw)
In-Reply-To: <jwvbpo9gxsu.fsf-monnier+emacsbugreports@gnu.org> (message from Stefan Monnier on Sat, 27 Jun 2009 23:44:44 +0200)
In article <jwvbpo9gxsu.fsf-monnier+emacsbugreports@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:
> > Current Emacs doesn't give utf-8 the higher priority than
> > iso-8859-1 in Latin-X language environment. Are you
> > proposing such a change? I can't decide that is good or not
> > because I'm not that familiar with such locales.
> It is a good change, because the likelyhood of a valid utf-8 file being
> a proper latin-1 file is extremely low.
Ok. For that, we must do:
(set-coding-system-priority 'utf-8)
somewhere. I at first thought it could be done by
`setup-function' of Latin-1 language environment. Actually,
when a user does C-x C-m L Latin-1 RET, it works.
But, when emacs starts up, it calls set-locale-environment,
and it at first calls set-language-environment then
overrides coding-system setups. So, at the moment, I don't
have a good idea other than this very ad-hoc change for 23.1.
--- mule-cmds.el.~1.360.~ 2009-04-09 03:03:17.000000000 +0900
+++ mule-cmds.el 2009-06-29 16:45:08.000000000 +0900
@@ -2643,6 +2643,10 @@
(not (coding-system-equal coding-system
locale-coding-system)))
(prefer-coding-system coding-system)
+ ;; Even if we prefer "iso-latin-1", it is better to detect
+ ;; UTF-8.
+ (if (eq (coding-system-base coding-system) 'iso-latin-1)
+ (set-coding-system-priority 'utf-8))
;; Fixme: perhaps prefer-coding-system should set this too.
;; But it's not the time to do such a fundamental change.
(setq default-sendmail-coding-system coding-system)
For 23.2, I think we should re-design language-info-alist.
---
Kenichi Handa
handa@m17n.org
next prev parent reply other threads:[~2009-06-29 7:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.888.1245349050.2239.bug-gnu-emacs@gnu.org>
2009-06-18 18:41 ` bug#3607: 23.0.94; odd character in fringe.el Teemu Likonen
2009-06-18 18:54 ` Drew Adams
2009-06-18 19:20 ` Teemu Likonen
2009-06-18 21:08 ` Drew Adams
2009-06-18 21:34 ` Lennart Borgman
2009-06-19 0:47 ` Kenichi Handa
2009-06-27 1:07 ` Stefan Monnier
2009-06-27 1:25 ` Kenichi Handa
2009-06-27 21:44 ` Stefan Monnier
2009-06-29 7:49 ` Kenichi Handa [this message]
2009-06-29 8:52 ` Stefan Monnier
2009-06-29 11:39 ` Kenichi Handa
2009-06-29 18:16 ` Eli Zaretskii
2009-06-29 20:48 ` Stefan Monnier
2009-06-18 18:00 Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1MLBcK-0001ZB-Vv@etlken \
--to=handa@m17n.org \
--cc=3607@emacsbugs.donarmstrong.com \
--cc=monnier@iro.umontreal.ca \
--cc=tlikonen@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).