GNU bug report logs - #12051
24.1; rcirc-send-message doesn't take multibyte into account.

Previous Next

Package: emacs;

Reported by: Li Ian-Xue <b4283 <at> bephor.org>

Date: Thu, 26 Jul 2012 01:17:02 UTC

Severity: normal

Found in version 24.1

Done: Leo <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Li Ian-Xue <b4283 <at> bephor.org>
Cc: 12051 <at> debbugs.gnu.org
Subject: Re: bug#12051: 24.1;
	rcirc-send-message doesn't take multibyte into account.
Date: Wed, 15 Aug 2012 05:57:55 +0300
> From: Li Ian-Xue <b4283 <at> bephor.org>
> Date: Wed, 15 Aug 2012 09:59:05 +0800
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Isn't it better and simpler to split the string after it is encoded
> > inside rcirc-send-string?
> But by then one wouldn't know at which byte to cut. For example when
> it's a multibyte-ascii mixed string.

You can always stop at known characters, like whitespace.

Anyway, another way is simply to assume the worst possible expansion
ratio, and estimate the byte count before encoding.




This bug report was last modified 12 years and 284 days ago.

Previous Next


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