From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: emacs crash when open some newsgroups with gnus Date: Thu, 18 Sep 2008 16:42:36 +0900 Message-ID: References: <85ljy3jbez.fsf@modprobe.cn> <85hc8rjb31.fsf@modprobe.cn> <85wshcsa1y.fsf@modprobe.cn> <853ak09tr5.fsf@modprobe.cn> <85ej3jm5uw.fsf@modprobe.cn> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1221723784 25778 80.91.229.12 (18 Sep 2008 07:43:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2008 07:43:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: "S.P.Tseng" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 18 09:44:00 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KgEBE-0004eF-Fb for ged-emacs-devel@m.gmane.org; Thu, 18 Sep 2008 09:44:00 +0200 Original-Received: from localhost ([127.0.0.1]:43068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgEAD-0002Vk-8R for ged-emacs-devel@m.gmane.org; Thu, 18 Sep 2008 03:42:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgEA2-0002Sm-44 for emacs-devel@gnu.org; Thu, 18 Sep 2008 03:42:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgE9z-0002RN-4F for emacs-devel@gnu.org; Thu, 18 Sep 2008 03:42:45 -0400 Original-Received: from [199.232.76.173] (port=50918 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgE9y-0002RB-Ta for emacs-devel@gnu.org; Thu, 18 Sep 2008 03:42:42 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:38673) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KgE9y-00072K-Vh for emacs-devel@gnu.org; Thu, 18 Sep 2008 03:42:43 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgE9w-0003AH-JS for emacs-devel@gnu.org; Thu, 18 Sep 2008 03:42:41 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m8I7gbRO010191; Thu, 18 Sep 2008 16:42:37 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m8I7galR007291; Thu, 18 Sep 2008 16:42:36 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id m8I7ga43003711; Thu, 18 Sep 2008 16:42:36 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1KgE9s-0004s2-6h; Thu, 18 Sep 2008 16:42:36 +0900 In-reply-to: <85ej3jm5uw.fsf@modprobe.cn> (deftsp@gmail.com) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by mx20.gnu.org: Solaris 9 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103934 Archived-At: In article <85ej3jm5uw.fsf@modprobe.cn>, "S.P.Tseng" writes: > I think I have found the reason. > After execute '(define-coding-system-alias 'gbk 'gb2312)', charset gbk will be > treated as charset gb2312. Emacs22 do not have the charset gbk, so that will be > fine. But Emacs23 support both. You know the charset gbk is bigger than gb2312, > when some char belong to charset gbk but be treated as gb2312 it will cause > overflow. Coding system and charset are different concepts in Emacs, and as far as I remember, I designed coding system in Emacs 23 not to crash even if one does (define-coding-system-alias 'gbk 'gb2312). If it crashes in your case, there's a bug. But, I can't reproduce the crash. So, could you please find where Emacs crashes, or show me an exact recipe to reproduce the crash. > How about when execute (define-coding-system-alias A B), if charset A is bigger than B, > give some warning or refuse? It may be a solution but at first I want to know which code is wrong. --- Kenichi Handa handa@ni.aist.go.jp