From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: cfb@cafer.org (Cafer =?utf-8?B?xZ5pbcWfZWs=?=) Newsgroups: gmane.emacs.devel Subject: Re: regex.c bug? - Re: HTML Mode and Turkish Locale - Segfault Date: Wed, 29 Nov 2006 20:15:15 +0200 Organization: Cafer.Org Message-ID: <87r6vm3yrw.fsf@medic.epidio.net> References: <871wnqncwa.fsf@medic.epidio.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1164824231 7387 80.91.229.2 (29 Nov 2006 18:17:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 18:17:11 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org, cfb@cafer.org, Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 29 19:17:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpTzI-0003Iq-BH for ged-emacs-devel@m.gmane.org; Wed, 29 Nov 2006 19:16:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpTzH-0007u6-Hx for ged-emacs-devel@m.gmane.org; Wed, 29 Nov 2006 13:16:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpTyC-000785-BF for emacs-devel@gnu.org; Wed, 29 Nov 2006 13:15:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpTy5-00070e-W0 for emacs-devel@gnu.org; Wed, 29 Nov 2006 13:15:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpTy4-0006zu-Rd for emacs-devel@gnu.org; Wed, 29 Nov 2006 13:15:36 -0500 Original-Received: from [217.195.198.71] (helo=arbiter.epidio.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GpTy0-0001ME-G8; Wed, 29 Nov 2006 13:15:32 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by arbiter.epidio.net (Postfix) with ESMTP id 48B4317AEF4; Wed, 29 Nov 2006 20:14:52 +0200 (EET) Original-Received: from medic.epidio.net (shero.epidio.net [85.105.169.41]) by arbiter.epidio.net (Postfix) with ESMTP id CEFBC17AC28; Wed, 29 Nov 2006 20:14:40 +0200 (EET) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Tue, 28 Nov 2006 01:49:23 -0500") X-Home-Page: http://cafer.org User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) 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:63046 Archived-At: I'm getting SegFault already. Program received signal SIGSEGV, Segmentation fault. 0x080e400a in re_set_syntax () (gdb) I want to help to fix it, so how can I compile Emacs with debug symbols? Best Regards. Stefan Monnier writes: >> In tr_TR.UTF-8, 'I' is translated to #x51051 (U+0131). But, >> it seems that SET_LIST_BIT assumes that the argument is less >> than 256 (or 128). So, I've just installed the following >> change. > >> @@ -2939,7 +2939,8 @@ >> for (ch =3D 0; ch < 1 << BYTEWIDTH; ++ch) >> { >> int translated =3D TRANSLATE (ch); >> - if (re_iswctype (btowc (ch), cc)) >> + if (translated < (1 << BYTEWIDTH) >> + && re_iswctype (btowc (ch), cc)) >> SET_LIST_BIT (translated); >> } > >> If translated is set to a mutibyte character, I think the >> above SET_RANGE_TABLE_WORK_AREA_BIT handles such a case. > >> Stefan, could you please confirm that my guess above is >> correct? > > That looks correct, yes. Thank you, > > > Stefan --=20 maybe you want to lost (lene) Cafer 'cfb' =C5=9Eim=C5=9Fek http://cafer.org