GNU bug report logs - #9496
24.0.50; Segfault on TAB-only composition

Previous Next

Package: emacs;

Reported by: Johan Bockgård <bojohan <at> gnu.org>

Date: Tue, 13 Sep 2011 20:27:01 UTC

Severity: important

Merged with 9775

Found in versions 24.0.50, 24.0.90

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #57 received at 9496 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9496 <at> debbugs.gnu.org
Subject: Re: bug#9496: 24.0.50; Segfault on TAB-only composition
Date: Sun, 05 Feb 2012 08:39:45 -0800
On 02/05/2012 08:36 AM, Eli Zaretskii wrote:

>> If char-width returns a value that's arbitrarily ceilinged
>> at 1000, but actual characters can be wider than 1000 columns,
>> code that uses char-width to count columns will be buggy.
> 
> How can an actual character (not its display-table replacement) be
> wider than that?

By "actual character" I meant to include how the character is
displayed, since char-width measures display width.  So that
includes the display-table replacement if any.

>> We could address this by changing the code that renders characters,
>> so that the code limits them to at most 1000 columns on the display.
> 
> That was my intent, yes.

OK, that sounds reasonable.




This bug report was last modified 13 years and 170 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.