all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Kenichi Handa <handa@m17n.org>
Cc: tlikonen@iki.fi, 3607@emacsbugs.donarmstrong.com
Subject: bug#3607: 23.0.94; odd character in fringe.el
Date: Mon, 29 Jun 2009 10:52:20 +0200	[thread overview]
Message-ID: <jwv63ef4e6w.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <E1MLBcK-0001ZB-Vv@etlken> (Kenichi Handa's message of "Mon, 29 Jun 2009 16:49:32 +0900")

>> 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.

Actually, AFAIK the "unlikely false positives" property of the utf-8
encoding is not only true when applied to latin-1 files but also to most
other encodings.  So really utf-8 should probably always be first (not
only for latin-1 environments), except maybe for some envs where there's
a knows non-negligible risk of false positives.


        Stefan





  reply	other threads:[~2009-06-29  8:52 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
2009-06-29  8:52                     ` Stefan Monnier [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv63ef4e6w.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=3607@emacsbugs.donarmstrong.com \
    --cc=handa@m17n.org \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.