GNU bug report logs - #10978
`calendar-string-spread' loses with double-width characters

Previous Next

Package: emacs;

Reported by: Štěpán Němec <stepnem <at> gmail.com>

Date: Fri, 9 Mar 2012 11:59:02 UTC

Severity: normal

Fixed in version 24.0.95

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Štěpán Němec <stepnem <at> gmail.com>
Cc: 10978 <at> debbugs.gnu.org
Subject: bug#10978: `calendar-string-spread' loses with double-width characters
Date: Fri, 09 Mar 2012 14:33:05 +0200
> From: Štěpán Němec
> 	<stepnem <at> gmail.com>
> Date: Fri, 09 Mar 2012 12:57:30 +0100
> 
> The algorithm used obviously works using `length', but for every
> double-width character the resulting string is one char too long when
> actually displayed, defeating its purpose when formatting the calendar
> mode line (`calendar-update-mode-line' et al.).

It should use `string-width' instead of `length'.





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

Previous Next


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