From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Li Ian-Xue Newsgroups: gmane.emacs.bugs Subject: bug#12051: 24.1; rcirc-send-message doesn't take multibyte into account. Date: Thu, 16 Aug 2012 01:53:55 +0800 Message-ID: <87has4ghxo.fsf@acerpad.localdomain> References: <87boj3byqy.fsf@acerpad.localdomain> <83k3x1jx3p.fsf@gnu.org> <874no4apau.fsf@acerpad.localdomain> <83628kkgjw.fsf@gnu.org> <831uj8jdl3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1345053386 31033 80.91.229.3 (15 Aug 2012 17:56:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2012 17:56:26 +0000 (UTC) Cc: 12051@debbugs.gnu.org, Leo To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 15 19:56:27 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T1hpS-0003ww-Qt for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 19:56:26 +0200 Original-Received: from localhost ([::1]:54770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1hpR-0006nk-Vi for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 13:56:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1hpP-0006nN-7P for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 13:56:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1hpN-0002O2-FY for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 13:56:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1hpN-0002Nd-Cj for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 13:56:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T1hxm-0001nx-1k for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 14:05:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87boj3byqy.fsf@acerpad.localdomain> Resent-From: Li Ian-Xue Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Aug 2012 18:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12051-submit@debbugs.gnu.org id=B12051.13450538896917 (code B ref 12051); Wed, 15 Aug 2012 18:05:02 +0000 Original-Received: (at 12051) by debbugs.gnu.org; 15 Aug 2012 18:04:49 +0000 Original-Received: from localhost ([127.0.0.1]:59484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1hxZ-0001nW-3l for submit@debbugs.gnu.org; Wed, 15 Aug 2012 14:04:49 -0400 Original-Received: from 122-117-157-82.hinet-ip.hinet.net ([122.117.157.82]:37188 helo=bephor.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1hxX-0001nM-Ck for 12051@debbugs.gnu.org; Wed, 15 Aug 2012 14:04:48 -0400 Original-Received: from 114-47-11-121.dynamic.hinet.net ([114.47.11.121] helo=acerpad.localdomain) by bephor.org with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1T1hq5-0000F7-Ks; Thu, 16 Aug 2012 01:57:05 +0800 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63204 Archived-At: Eli Zaretskii writes: >> 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. Why, no one is interested in the patch i submitted in July ? that patched used a binary search. http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-07/msg00937.html -- ps: it might need a liitle rework because the mailing list wrapped the lines. i'll re-post it on a pastebin if anyone is still interested. http://paste.debian.net/?show=183709