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#1654: 23.0.60; auto encoding detection (detect-coding-region) not working Date: Mon, 30 Mar 2009 10:08:31 +0900 Message-ID: References: <87k56bu0uu.fsf@cyd.mit.edu> <9m7i2bwdod.fsf@nusnet-97-126.dynip.nus.edu.sg> Reply-To: Kenichi Handa , 1654@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1238376254 9527 80.91.229.12 (30 Mar 2009 01:24:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2009 01:24:14 +0000 (UTC) Cc: cyd@stupidchicken.com, 1654@emacsbugs.donarmstrong.com To: poppyer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 30 03:25:31 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 1Lo6Ff-0008Kf-Hi for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Mar 2009 03:25:23 +0200 Original-Received: from localhost ([127.0.0.1]:60502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lo6EH-0000Yy-VB for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Mar 2009 21:23:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lo6EE-0000Yc-7z for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2009 21:23:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lo6E9-0000Xd-QS for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2009 21:23:53 -0400 Original-Received: from [199.232.76.173] (port=39890 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lo6E9-0000XW-Gz for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2009 21:23:49 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38683) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lo6E8-0000L9-S0 for bug-gnu-emacs@gnu.org; Sun, 29 Mar 2009 21:23:49 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2U1Nk0d001720; Sun, 29 Mar 2009 18:23:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2U1F3OR031880; Sun, 29 Mar 2009 18:15:03 -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, 30 Mar 2009 01:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1654 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1654-submit@emacsbugs.donarmstrong.com id=B1654.123837527830639 (code B ref 1654); Mon, 30 Mar 2009 01:15:03 +0000 Original-Received: (at 1654) by emacsbugs.donarmstrong.com; 30 Mar 2009 01:07:58 +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.13.8/8.13.8/Debian-3) with ESMTP id n2U17oE8030632 for <1654@emacsbugs.donarmstrong.com>; Sun, 29 Mar 2009 18:07:51 -0700 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n2U17mZ9026152; Mon, 30 Mar 2009 10:07:48 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n2U17mXt011981; Mon, 30 Mar 2009 10:07:48 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id n2U17kG0020011; Mon, 30 Mar 2009 10:07:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1Lo5zL-0002NX-JV; Mon, 30 Mar 2009 10:08:31 +0900 In-reply-to: <9m7i2bwdod.fsf@nusnet-97-126.dynip.nus.edu.sg> (message from poppyer on Fri, 27 Mar 2009 16:52:18 +0800) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 29 Mar 2009 21:23:53 -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:26747 Archived-At: In article <9m7i2bwdod.fsf@nusnet-97-126.dynip.nus.edu.sg>, poppyer writes: > I just re-examine the code, and find the bug. > And it is a bug in lisp/language/chinese.el > near line 125: [...] > should be: > ================= > (define-coding-system 'chinese-big5 > "BIG5 8-bit encoding for Chinese (MIME:Big5)" > :coding-type 'big5 ;; change charset to big5 here, poppyer > :mnemonic ?B > :charset-list '(ascii big5) > :mime-charset 'big5) > ===================== Actually this is not a bug. When I introduced the coding-type `charset' in Emacs 23, I changed most coding-systems that require charset-mapping to that type. In the future, I want to delete all Big5 (and SJIS) specific codes in coding.c. But, the implementation of detecting coding systems of the same type won't be in time for Emacs 23.1. So, I'll commit your change. --- Kenichi Handa handa@m17n.org