bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eli Zaretskii
Subject: bug#12051: 24.1; rcirc-send-message doesn't take multibyte into account.
Date: Wed, 15 Aug 2012 19:59:36 +0300

> From:  Leo <sdl.web@gmail.com>
> Cc: Li Ian-Xue <b4283@bephor.org>,  12051@debbugs.gnu.org
> Date: Wed, 15 Aug 2012 21:10:45 +0800
> 
> On 2012-08-15 10:57 +0800, Eli Zaretskii wrote:
> > 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.
> 
> I make a small optimisation that calls encode-coding-region char by
> char. Comments?

I think it's terribly inefficient to encode the string one character
at a time.

Again, assuming the worst expansion is IMO much better, and will not
force you to encode in a loop.  But that's me.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]