From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66512 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: strange behavior in regexp matching Date: Mon, 17 Mar 2008 15:26:43 +0100 Message-ID: References: Reply-To: Reiner Steib 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 1205764093 13702 80.91.229.12 (17 Mar 2008 14:28:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2008 14:28:13 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 17 15:28:33 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 1JbGKC-0007kc-Ui for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2008 15:28:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbGJc-00059n-7t for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2008 10:27:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JbGJY-00059U-TZ for emacs-devel@gnu.org; Mon, 17 Mar 2008 10:27:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JbGJX-000596-6D for emacs-devel@gnu.org; Mon, 17 Mar 2008 10:27:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbGJX-000593-3b for emacs-devel@gnu.org; Mon, 17 Mar 2008 10:27:47 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JbGJW-0005Jt-L1 for emacs-devel@gnu.org; Mon, 17 Mar 2008 10:27:46 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id m2HERiBH023546; Mon, 17 Mar 2008 15:27:44 +0100 (MET) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 7F97712FEF; Mon, 17 Mar 2008 15:27:44 +0100 (CET) X-Face: P05mdcZT&lL[-s2=mw~RsllZ0zZAb?vdE}.s, ding@gnus.org, emacs-devel@gnu.org In-Reply-To: (Andreas Schwab's message of "Mon, 17 Mar 2008 15:02:49 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.92 (gnu/linux) X-DCC-URT-Metrics: poseidon 1060; Body=3 Fuz1=3 Fuz2=3 X-Virus-Scanned: by amavisd-new X-MIME-Autoconverted: from 8bit to quoted-printable by mail.uni-ulm.de id m2HERiBH023546 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:92831 gmane.emacs.gnus.general:66512 Archived-At: On Mon, Mar 17 2008, Andreas Schwab wrote: > Does it help to change the test to > (re-search-forward "[[:multibyte:]]" to t)? No, it[1] doesn't help: ,---- | Debugger entered--Lisp error: (error "Multibyte character in QP encodin= g region") | signal(error ("Multibyte character in QP encoding region")) | error("Multibyte character in QP encoding region") | (if (re-search-forward "[[:multibyte:]]" to t) (error "Multibyte char= acter in QP encoding region")) | (save-excursion (goto-char from) (if (re-search-forward "[[:multibyte= :]]" to t) (error "Multibyte character in QP encoding region")) (save-res= triction (narrow-to-region from to) (goto-char ...) (while ... ...) (goto= -char ...) (while ... ... ...) (let ... ...))) | quoted-printable-encode-region(1 4 nil "-=08\n\f !#-'*+0-9A-Z\\^`-~=7F= ") | rfc2047-q-encode-string("B=C3=A4") | rfc2047-encode-1(9 "B\x00e4r" utf-8 rfc2047-q-encode-string "=3D?utf-= 8?Q?" " " "") | rfc2047-encode(71 74) | rfc2047-encode-region(71 75) | mail-encode-encoded-word-buffer() | mml-to-mime() | mml-preview((4)) | call-interactively(mml-preview t nil) | execute-extended-command((4)) | call-interactively(execute-extended-command nil nil) `---- Bye, Reiner. [1] --8<---------------cut here---------------start------------->8--- --- qp.el.~1.28.~ 2008-01-09 20:36:04.000000000 +0100 +++ qp.el 2008-03-17 15:22:06.000000000 +0100 @@ -107,8 +107,7 @@ (setq class "\010-\012\014\040-\074\076-\177")) (save-excursion (goto-char from) - (if (re-search-forward (mm-string-to-multibyte "[^\x0-\x7f\x80-\xff]= ") - to t) + (if (re-search-forward "[[:multibyte:]]" to t) (error "Multibyte character in QP encoding region")) (save-restriction (narrow-to-region from to) --8<---------------cut here---------------end--------------->8--- --=20 ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/