From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23047: 25.1.50; erc miscomputes the length of strings when sending utf-8 characters Date: Thu, 17 Mar 2016 23:42:45 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1458254667 28044 80.91.229.3 (17 Mar 2016 22:44:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Mar 2016 22:44:27 +0000 (UTC) To: 23047@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 17 23:44:12 2016 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 1aggeJ-0004Hf-Es for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Mar 2016 23:44:11 +0100 Original-Received: from localhost ([::1]:40351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aggeJ-0007Wn-1v for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Mar 2016 18:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aggeF-0007WV-5L for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2016 18:44:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aggeA-0006T6-4L for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2016 18:44:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aggeA-0006T1-1k for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2016 18:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1agge9-0007oY-TW for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2016 18:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Mar 2016 22:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145825458529968 (code B ref -1); Thu, 17 Mar 2016 22:44:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Mar 2016 22:43:05 +0000 Original-Received: from localhost ([127.0.0.1]:51521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aggdE-0007nI-MA for submit@debbugs.gnu.org; Thu, 17 Mar 2016 18:43:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aggdC-0007mk-Sk for submit@debbugs.gnu.org; Thu, 17 Mar 2016 18:43:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aggd6-00069k-5K for submit@debbugs.gnu.org; Thu, 17 Mar 2016 18:42:57 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aggd6-00069f-2I for submit@debbugs.gnu.org; Thu, 17 Mar 2016 18:42:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aggd4-0006PI-DL for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2016 18:42:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aggcz-00068q-D2 for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2016 18:42:54 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:36961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aggcz-00068Z-2m for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2016 18:42:49 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1aggcv-0005Sd-Cg for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2016 23:42:47 +0100 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:115014 Archived-At: If you send the following to an irc channel: NOTICE: The main purpose of the Emacs tutorial is to teach you the most imp= ortant standard Emacs commands (key bindings). How=A8=A6v=A8=A6r, your =A1= =F4macs has b=A1=F4=A1=F4n customiz=A1=F4d by changing som=A1=F4 of th=A1= =F4s=A1=F4 basic =A1=F4diting commands, so it do=A1=F4sn't corr=A1=F4spond = to th=A1=F4 tutorial. W=A1=F4 hav=A1=F4 ins=A1=F4rt=A1=F4d color=A1=F4d not= ic=A1=F4s wh=A1=F4r=A1=F4 th=A1=F4 alt=A1=F4r=A1=F4d commands hav=A1=F4 b= =A1=F4=A1=F4n introduc=A1=F4d. NOTIC=A1=F4: Th=A1=F4 main purpos=A1=F4 of t= h=A1=F4 =A1=F4macs tutorial is to t=A1=F4ach you th=A1=F4 most important st= andard =A1=F4macs commands (k=A1=F4y bindings). How=A1=F4v=A1=F4r, your =A1= =F4macs has b=A1=F4=A1=F4n customiz=A1=F4d by changing som=A1=F4 of th=A1= =F4s=A1=F4 basic =A1=F4diting commands, so it do=A1=F4sn't corr=A1=F4spond = to th=A1=F4 tutorial. W=A1=F4 hav=A1=F4 ins=A1=F4rt=A1=F4d color=A1=F4d not= ic=A1=F4s wh=A1=F4r=A1=F4 th=A1=F4 alt=A1=F4r=A1=F4d commands hav=A1=F4 b= =A1=F4=A1=F4n introduc=A1=F4d. then the recipient channel will receive the two lines NOTICE: The main purpose of the Emacs tutorial is to teach you the most imp= ortant standard Emacs commands (key bindings). How=A8=A6v=A8=A6r, your =A1= =F4macs has b=A1=F4=A1=F4n customiz=A1=F4d by changing som=A1=F4 of th=A1= =F4s=A1=F4 basic =A1=F4diting commands, so it do=A1=F4sn't corr=A1=F4spond = to th=A1=F4 tutorial. W=A1=F4 hav=A1=F4 ins=A1=F4rt=A1=F4d color=A1=F4d not= ic=A1=F4s wh=A1=F4r=A1=F4 th=A1=F4 alt=A1=F4r=A1=F4d commands hav=A1=F4 b= =A1=F4=A1=F4n introduc=A1=F4d. NOTIC=A1=F4: Th=A1=F4 main purpos=A1=F4 of t= h=A1=F4 =A1=F4macs tutorial i commands (k=A1=F4y bindings). How=A1=F4v=A1=F4r, your =A1=F4macs has b=A1= =F4=A1=F4n customiz=A1=F4d by changing som=A1=F4 of th=A1=F4s=A1=F4 basic = =A1=F4diting commands, so it do=A1=F4sn't corr=A1=F4spond to th=A1=F4 tutor= ial. W=A1=F4 hav=A1=F4 ins=A1=F4rt=A1=F4d color=A1=F4d notic=A1=F4s wh=A1= =F4r=A1=F4 th=A1=F4 alt=A1=F4r=A1=F4d commands hav=A1=F4 b=A1=F4=A1=F4n int= roduc=A1=F4d. (Note the missing text between "tutorial i" and "commands".) I am assuming this has something to do with miscomputing the encoded string length, but that's just a guee. In GNU Emacs 25.1.50.28 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2016-03-17 built on stories Repository revision: 58862751bde2611d9ea99a33ecb5b0c13a7513b9 Windowing system distributor 'The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux 7.9 (wheezy) Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US locale-coding-system: iso-latin-1-unix Major mode: Group Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t gnus-topic-mode: t gnus-undo-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Recent messages: Reading active file via nnmh...done nnimap read 3k from hermes.netfonds.no [3 times] nnimap read 5k from hermes.netfonds.no Reading active file from archive via nnfolder...done Reading active file from archive via nnfolder...done Reading active file via nndraft...done Reading active file via nnmbox...done Checking new news...done Auto-saving...done Making completion list... Load-path shadows: /home/larsi/src/clock.el/clock hides /home/larsi/lisp/clock /home/larsi/src/cddb.el/expect hides /home/larsi/lisp/expect /home/larsi/src/pvr.el/pvr hides /home/larsi/lisp/pvr ~/pgnus/contrib/vcard hides /home/larsi/lisp/vcard /home/larsi/src/cddb.el/captitle hides /home/larsi/lisp/captitle ~/lisp/zenirc-2.112/src/zenirc-example hides /home/larsi/lisp/zenirc-example /home/larsi/lisp/dom hides /home/larsi/src/emacs/trunk/lisp/dom ~/pgnus/contrib/compface hides /home/larsi/src/emacs/trunk/lisp/image/compf= ace Features: (whitespace diff-mode dired-aux tramp-cache tramp tramp-compat tramp-loaddefs trampver ucs-normalize advice shell pcomplete comint ring jukebox humanely-sort lyric-wiki discogs json map dae musicbrainz scan scrobble tellstick wave cddb captitle expect eieio-opt speedbar sb-image ezimage dframe find-func ecomplete misearch multi-isearch flow-fill shr-color color eww gnus-html help-fns url-queue url-cache mm-archive vc vc-dispatcher copyright vc-cvs gnus-picon smiley ansi-color gnus-cite gnus-async gnus-dup gnus-ml gmane spam-gmane dns mm-url disp-table gnus-fun gnus-mdrtn pop3 nndoc nnmbox nndraft utf-7 gnus-topic nnmh nnml nnfolder nnir spam-report spam spam-stat gnus-uu yenc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win gnus nnheader network-stream nsm starttls mailalias smtpmail qp pp shadow sort emacsbug message format-spec rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mailabbrev gmm-utils mailheader sendmail mail-utils movie mkv shr svg imdb dom pvr debug debbugs-gnu easy-mmode derived debbugs soap-client mm-decode mm-bodies mm-encode url-http tls gnutls url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap warnings rng-xsd rng-dt rng-util xsd-regexp xml ido seq flyspell ispell benchmark w3m browse-url doc-view subr-x dired dired-loaddefs image-mode timezone w3m-hist w3m-fb w3m-ems wid-edit w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util add-log mail-extr mm-util mail-prsvr jka-compr cl finder-inf package epg-config url-handlers url-parse auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra help-mode easymenu cconv eieio-core cl-macs gv eieio-loaddefs cl-loaddefs pcase cl-lib password-cache url-vars time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1151618 98739) (symbols 48 173291 183) (miscs 40 705 2233) (strings 32 251038 8990) (string-bytes 1 15182236) (vectors 16 66817) (vector-slots 8 2003518 84003) (floats 8 7860 5556) (intervals 56 76020 2215) (buffers 976 78) (heap 1024 125478 66151)) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no