From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [harder@ifa.au.dk: `set-locale-environment' bug] Date: Tue, 28 Oct 2003 16:14:53 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200310280714.QAA05836@etlken.m17n.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1067325481 13609 80.91.224.253 (28 Oct 2003 07:18:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2003 07:18:01 +0000 (UTC) Cc: harder@ifa.au.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Oct 28 08:17:59 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEO75-0007I3-00 for ; Tue, 28 Oct 2003 08:17:59 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEO75-0000c7-00 for ; Tue, 28 Oct 2003 08:17:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AEO4m-0003qc-LQ for emacs-devel@quimby.gnus.org; Tue, 28 Oct 2003 02:15:36 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AEO4h-0003qO-Hx for emacs-devel@gnu.org; Tue, 28 Oct 2003 02:15:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AEO4B-0003Zd-J8 for emacs-devel@gnu.org; Tue, 28 Oct 2003 02:15:30 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AEO4A-0003ZH-Ts; Tue, 28 Oct 2003 02:14:59 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6p2/3.7W-20010518204228) with ESMTP id h9S7Esh29206; Tue, 28 Oct 2003 16:14:54 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6/3.7W-20010823150639) with ESMTP id h9S7Ers11182; Tue, 28 Oct 2003 16:14:53 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id QAA05836; Tue, 28 Oct 2003 16:14:53 +0900 (JST) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Mon, 27 Oct 2003 18:44:17 -0500) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17492 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17492 In article , Richard Stallman writes: > can u work on this? > ------- Start of forwarded message ------- > To: emacs-pretest-bug@gnu.org > From: Jesper Harder > Date: Mon, 27 Oct 2003 04:31:50 +0100 > Subject: `set-locale-environment' bug [...] > 1. Start Emacs in a en_US.iso88591 locale: > LANG=en_US.iso88591 emacs -q --no-site-file > 2. Evaluate: > (setq standard-display-table nil) > 3. Evaluating this expression: > (set-locale-environment) > results in the following backtrace: > Debugger entered--Lisp error: (wrong-type-argument arrayp nil) > aset(nil 160 [160]) > (if (and (>= l 32) (< l 127)) (aset standard-display-table l nil) (aset standard-display-table l (vector l))) > (while (<= l h) (if (and ... ...) (aset standard-display-table l nil) (aset standard-display-table l ...)) (setq l (1+ l))) > standard-display-8bit(160 255) Several functions in disp-table.el (e.g. standard-display-8bit, standard-display-default) assume that standard-display-table is already a dispaly-table. I've just added: (or standard-display-table (setq standard-display-table (make-display-table))) to all such functions that modify standard-display-table. > By the way, the node "(elisp)Active Display Table" states that the > default value for `standard-display-table' is nil. > This isn't correct since the default value depends on the locale -- it > is non-nil in the above locale. Right. How about writing the info as below? This variable's value is the default display table, used whenever a window has no display table and neither does the buffer displayed in that window. This variable is usually @code{nil}, but set to a proper display table when Emacs is started in such locales that use a single byte character set (e.g. en_US.iso88591). --- Ken'ichi HANDA handa@m17n.org