From: Kenichi Handa <handa@m17n.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Gnus crash
Date: Mon, 20 Jan 2003 09:19:11 +0900 (JST) [thread overview]
Message-ID: <200301200019.JAA16129@etlken.m17n.org> (raw)
In-Reply-To: <uel7blace.fsf@terra.es> (emufer@terra.es)
In article <uel7blace.fsf@terra.es>, "Eduardo =?iso-8859-1?q?Mu=F1oz?=" <emufer@terra.es> writes:
> Kenichi Handa <handa@m17n.org> writes:
>> Thank you for the report. This bug was already fixed in the
>> CVS HEAD by the attached patch. Eduardo, could you please
>> try the attached patch?
> I only have emacs-21.2 source here and the patch doesn't
> match the file editfns.c.
Strange. The patch should be applied to 21.2 source too.
Anyway, I made a new patch for 21.2. Please try again.
> Would be helpfull to download and build the current CVS
> version of emacs?
It will be helpfull, but please note that it contains lots
of new features that are not yet fully tested.
---
Ken'ichi HANDA
handa@m17n.org
--- editfns.c.orig Thu Mar 14 04:52:17 2002
+++ editfns.c Mon Jan 20 09:11:03 2003
@@ -3169,6 +3169,7 @@
if (*format++ == '%')
{
int thissize = 0;
+ int actual_width = 0;
unsigned char *this_format_start = format - 1;
int field_width, precision;
@@ -3249,6 +3250,7 @@
if (*format != 's' && *format != 'S')
error ("Format specifier doesn't match argument type");
thissize = CONVERTED_BYTE_SIZE (multibyte, args[n]);
+ actual_width = lisp_string_width (args[n], -1, NULL, NULL);
}
/* Would get MPV otherwise, since Lisp_Int's `point' to low memory. */
else if (INTEGERP (args[n]) && *format != 's')
@@ -3302,7 +3304,7 @@
goto string;
}
- thissize = max (field_width, thissize);
+ thissize += max (0, field_width - actual_width);
total += thissize + 4;
}
next prev parent reply other threads:[~2003-01-20 0:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-11 17:11 Gnus crash Eduardo Muñoz
2003-01-17 2:20 ` Kenichi Handa
2003-01-17 21:45 ` Eduardo Muñoz
2003-01-20 0:19 ` Kenichi Handa [this message]
2003-01-20 21:27 ` Eduardo Muñoz
2003-01-21 11:41 ` Kenichi Handa
2003-01-22 9:59 ` Richard Stallman
[not found] ` <mailman.759.1043229932.21513.bug-gnu-emacs@gnu.org>
2003-01-23 8:37 ` Lee Sau Dan
2003-01-24 5:43 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2003-01-13 16:48 ShengHuo ZHU
[not found] <mailman.220.1042476624.21513.bug-gnu-emacs@gnu.org>
2003-01-13 17:34 ` Eduardo Muñoz
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200301200019.JAA16129@etlken.m17n.org \
--to=handa@m17n.org \
--cc=bug-gnu-emacs@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).