From xemacs-m  Mon Apr 28 00:02:20 1997
Received: from elvenbow.nc.kyushu-u.ac.jp (elvenbow.nc.kyushu-u.ac.jp [133.5.6.4])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id AAA23765
	for <xemacs-beta@xemacs.org>; Mon, 28 Apr 1997 00:02:02 -0500 (CDT)
Received: from localhost (kasahara@localhost [127.0.0.1]) by elvenbow.nc.kyushu-u.ac.jp (8.8.5/3.5Wbeta) with ESMTP
	id OAA13249 for <xemacs-beta@xemacs.org>; Mon, 28 Apr 1997 14:01:31 +0900 (JST)
To: xemacs-beta@xemacs.org
Subject: code detection problem on 20.2-b2
X-Mailer: Mew version 1.69 on XEmacs 20.1
X-Fingerprint: 31 DC 9F DF C2 B9 8E 00  3A 7C 4F 0C 03 D8 AC 16
X-URL: http://www.nc.kyushu-u.ac.jp/~kasahara/
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <19970428140130G.kasahara@nc.kyushu-u.ac.jp>
Date: Mon, 28 Apr 1997 14:01:30 +0900
From: Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
X-Dispatcher: impost version 0.99+ (Mar. 3, 1997)
Lines: 36

Someone told me that XEmacs20.[12] can't handle Japanese info file
correctly.  It seems that detect_coding_type failed to recognize
iso2022 if it contains some control codes.

acceptable_control_char_p says:

  switch (c)
    {
      /* Allow and ignore control characters that you might
         reasonably see in a text file */
    case '\r':
    case '\n':
    case '\t':
    case  7: /* bell */
    case  8: /* backspace */
    case 11: /* vertical tab */
    case 12: /* form feed */
    case 26: /* MS-DOS C-z junk */
      return 1;
    default:
      return 0;
    }

but info files contain 0x1f for delimiter.... I think this function is
too rigid.  Some configuration files of Japanese software may possibly
contain other control codes with iso-2022-jp code(I don't know the
real example).

I wonder what happens if it ignores all control characters.  I'm not
an expert of coding-system, so I can't guess.
-- 
Yoshiaki Kasahara
KITE Network Operation Center, Computer Center, Kyushu University

Email addr:                           |  I'm free!   & ~ __-^-_/~
    kasahara@nc.kyushu-u.ac.jp        |               ~   \___/

