From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: eliz@gnu.org, cfb@cafer.org, emacs-devel@gnu.org
Subject: Re: regex.c bug? - Re: HTML Mode and Turkish Locale - Segfault
Date: Tue, 28 Nov 2006 01:49:23 -0500 [thread overview]
Message-ID: <jwvu00kdq4h.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1GorbF-0001He-Dk@etlken.m17n.org> (Kenichi Handa's message of "Tue\, 28 Nov 2006 10\:17\:29 +0900")
> 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 = 0; ch < 1 << BYTEWIDTH; ++ch)
> {
> int translated = 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
next prev parent reply other threads:[~2006-11-28 6:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-26 20:58 HTML Mode and Turkish Locale - Segfault Cafer Şimşek
2006-11-27 6:37 ` Eli Zaretskii
2006-11-27 8:19 ` Kenichi Handa
2006-11-27 13:24 ` Eli Zaretskii
2006-11-28 1:17 ` regex.c bug? - " Kenichi Handa
2006-11-28 6:49 ` Stefan Monnier [this message]
2006-11-29 18:15 ` Cafer Şimşek
2006-11-29 19:46 ` Andreas Schwab
2006-11-30 2:09 ` Kenichi Handa
2006-12-04 1:30 ` Cafer Simsek
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvu00kdq4h.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cfb@cafer.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.