From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: strange behavior in regexp matching Date: Mon, 17 Mar 2008 21:13:08 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1205756019 14374 80.91.229.12 (17 Mar 2008 12:13:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2008 12:13:39 +0000 (UTC) Cc: ding@gnus.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 17 13:14:08 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JbEEB-0003wv-D7 for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2008 13:14:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbEDb-0008Dd-LF for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2008 08:13:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JbEDX-0008DQ-Dk for emacs-devel@gnu.org; Mon, 17 Mar 2008 08:13:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JbEDV-0008DB-Cb for emacs-devel@gnu.org; Mon, 17 Mar 2008 08:13:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbEDV-0008D8-7X for emacs-devel@gnu.org; Mon, 17 Mar 2008 08:13:25 -0400 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JbEDV-0007qJ-0Z for emacs-devel@gnu.org; Mon, 17 Mar 2008 08:13:25 -0400 Original-Received: from [66.225.201.151] (port=41248 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1JbEDQ-0001Il-SM; Mon, 17 Mar 2008 07:13:21 -0500 X-Hashcash: 1:20:080317:emacs-devel@gnu.org::21YXen3KWRw8kIa4:0000000000000000000000000000000000000000001BWX X-Hashcash: 1:20:080317:ding@gnus.org::w/mIURwQEi0idBvh:00006cn/ X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:QV+44lRdMS2S8cm09KBicMvKrwY= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:92816 gmane.emacs.gnus.general:66505 Archived-At: Hi, Maybe due to the recent Emacs trunk change, I couldn't send a reply to "Ville Skytt=E4" using Gnus. When encoding that name in the message header I got: (error "Multibyte character in QP encoding region") This was issued by the `quoted-printable-encode-region' function defined in qp.el: (defun quoted-printable-encode-region (from to &optional fold class) [...] (if (re-search-forward (mm-string-to-multibyte "[^\x0-\x7f\x80-\xff]") to t) (error "Multibyte character in QP encoding region")) An equivalent code that causes an error is: (with-temp-buffer (set-buffer-multibyte nil) (insert (encode-coding-string "Ville Skytt=E4" 'iso-8859-1)) (goto-char (point-min)) (re-search-forward (string-to-multibyte "[^\x0-\x7f\x80-\xff]") nil t)) While Emacs 22.1.92 returns nil for it, Emacs trunk returns a non-nil value. Is it an intended behavior? If so, do you have an idea to fix the problem? Note: a buffer in which `quoted-printable-encode-region' is called is multibyte or unibyte as the case may be. Regards,