unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: S.P.Tseng <deftsp@gmail.com>
To: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: emacs crash when open some newsgroups with gnus
Date: Wed, 17 Sep 2008 18:20:07 +0800	[thread overview]
Message-ID: <85ej3jm5uw.fsf@modprobe.cn> (raw)
In-Reply-To: <E1Kfpp2-0006Lf-Cx@etlken.m17n.org> (Kenichi Handa's message of "Wed, 17 Sep 2008 14:43:28 +0900")

Kenichi Handa <handa@m17n.org> writes:

> In article <853ak09tr5.fsf@modprobe.cn>, "S.P.Tseng" <deftsp@gmail.com> writes:
>
>>>> "(define-coding-system-alias 'gbk 'gb2312)" for emacs22 tricked me.
>> >
>> > Do you mean that you had the above code in your .emacs, and
>> > after deleting it, Emacs 23 doesn't crash anymore?
>> >
>
>> Yes.
>
> I put that line in my .emacs, run Emacs 23, and visited
> gmain.emacs.devel by Gnus, but couldn't reproduce the crash.
>
> Please run Emacs under gdb and find at which point Emacs
> crashes in your case.

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.

So, visited gmane.emacs.devel will or will not reproduce the crash.
But visited "cn.bbs.comp.emacs" from "new.cn99.com" can 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?




  reply	other threads:[~2008-09-17 10:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-08  8:21 emacs crash when open some newsgroups with gnus S.P.Tseng
2008-09-08  8:28 ` S.P.Tseng
2008-09-09  6:23   ` S.P.Tseng
2008-09-16  9:40   ` S.P.Tseng
2008-09-16 11:20     ` Kenichi Handa
2008-09-16 12:10       ` S.P.Tseng
2008-09-17  5:43         ` Kenichi Handa
2008-09-17 10:20           ` S.P.Tseng [this message]
2008-09-18  7:42             ` Kenichi Handa
2008-09-18 10:20               ` S.P.Tseng
2008-09-18 11:59                 ` Kenichi Handa
2008-09-18 12:33                   ` S.P.Tseng
2008-09-19  1:17                     ` Kenichi Handa
2008-09-19  3:12                       ` S.P.Tseng
2008-09-25 12:32                         ` Kenichi Handa
2008-09-25 12:51                           ` S.P.Tseng

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=85ej3jm5uw.fsf@modprobe.cn \
    --to=deftsp@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    /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).