From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#3607: 23.0.94; odd character in fringe.el Date: Mon, 29 Jun 2009 16:49:32 +0900 Message-ID: References: <8763etqt9s.fsf@iki.fi> <87my85pcwg.fsf@iki.fi> <09A95873A4AC4B40986C3076F126F9A6@us.oracle.com> Reply-To: Kenichi Handa , 3607@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1246262337 1562 80.91.229.12 (29 Jun 2009 07:58:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2009 07:58:57 +0000 (UTC) Cc: tlikonen@iki.fi, 3607@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 29 09:58:49 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MLBkd-0001EB-Jb for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2009 09:58:07 +0200 Original-Received: from localhost ([127.0.0.1]:54583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLBkc-0008L8-Bb for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2009 03:58:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLBk3-00089Y-K1 for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 03:57:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLBjz-00087l-R0 for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 03:57:31 -0400 Original-Received: from [199.232.76.173] (port=60970 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLBjz-00087W-I9 for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 03:57:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59636) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLBjy-0003gG-UX for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 03:57:27 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5T7vOjx030165; Mon, 29 Jun 2009 00:57:24 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5T7t7I2029504; Mon, 29 Jun 2009 00:55:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 29 Jun 2009 07:55:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3607 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3607-submit@emacsbugs.donarmstrong.com id=B3607.124626177928588 (code B ref 3607); Mon, 29 Jun 2009 07:55:07 +0000 Original-Received: (at 3607) by emacsbugs.donarmstrong.com; 29 Jun 2009 07:49:39 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5T7nYxI028583 for <3607@emacsbugs.donarmstrong.com>; Mon, 29 Jun 2009 00:49:36 -0700 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n5T7nXKJ026673; Mon, 29 Jun 2009 16:49:33 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n5T7nXCu015924; Mon, 29 Jun 2009 16:49:33 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n5T7nXIb010622; Mon, 29 Jun 2009 16:49:33 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MLBcK-0001ZB-Vv; Mon, 29 Jun 2009 16:49:32 +0900 In-reply-to: (message from Stefan Monnier on Sat, 27 Jun 2009 23:44:44 +0200) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 29 Jun 2009 03:57:31 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29074 Archived-At: In article , Stefan Monnier 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