Subject: bug#59 closed by Reiner Steib <[email-masked]> (reply to Reiner Steib <[email-masked]>) (Re: 23.0.60; error: Multibyte character in QP encoding region)

From: [email-masked] (Emacs bug Tracking System)

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#59: 23.0.60; error: Multibyte character in QP encoding region

It has been closed by Reiner Steib <[email-masked]> (reply to Reiner Steib <[email-masked]>).

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Reiner Steib <[email-masked]> (reply to Reiner Steib <[email-masked]>) by
replying to this email.

-- 
59: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=59
Emacs Bug Tracking System
Contact [email-masked] with problems
>From [email-masked] Tue Mar 18 19:31:36 2008
Resent-Message-ID: <[email-masked]>
Resent-To: [email-masked]
Resent-From: Stefan Monnier <[email-masked]>
Resent-Date: Tue, 18 Mar 2008 22:30:54 -0400
From: Reiner Steib <[email-masked]>
To: [email-masked]
Mail-Followup-To: [email-masked], [email-masked]
Date: Mon, 17 Mar 2008 20:41:26 +0100
X-DCC-dcc.uncw.edu-Metrics: poseidon 1201; Body=2 Fuz1=2 Fuz2=2
Cc: [email-masked]
Subject: Re: 23.0.60; error: Multibyte character in QP encoding region
Reply-To: Reiner Steib <[email-masked]>
Sender: emacs-devel-bounces+monnier=[email-masked]

On Mon, Mar 17 2008, Reiner Steib wrote:

> a recent change (after 2008-03-14) in the Emacs trunk breaks sending
> mail with message mode.

Fixed now.  Thanks, Andreas.

2008-03-17  Andreas Schwab  <[email-masked]>

        * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
        against a charset.

        * lisp.h (Fbuffer_list): Declare.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

>From [email-masked] Mon Mar 17 07:00:43 2008
Resent-Message-ID: <[email-masked]>
Resent-To: [email-masked]
Resent-From: Stefan Monnier <[email-masked]>
Resent-Date: Mon, 17 Mar 2008 09:59:59 -0400
From: Reiner Steib <[email-masked]>
To: [email-masked]
Mail-Followup-To: [email-masked], [email-masked]
Date: Mon, 17 Mar 2008 14:35:46 +0100
Cc: [email-masked]
Subject: 23.0.60; error: Multibyte character in QP encoding region
Reply-To: Reiner Steib <[email-masked]>
Sender: emacs-devel-bounces+monnier=[email-masked]

Hi,

a recent change (after 2008-03-14) in the Emacs trunk breaks sending
mail with message mode.

To reproduce:

Start "emacs -Q".  In *scratch* eval...

(progn
  (setq debug-on-error t)
  (message-mail "foo" (concat "B"
                              (string (make-char 'latin-iso8859-1 228));;=
 =E4
                              "r")))

,----[ *mail to foo* ]
| To: foo
| Subject: B=E4r
| From: [your name]
| --text follows this line--
| [...]
`----

In the buffer *mail to foo* press `C-u M-x mml-preview RET'

Expected behavior (this is what I get with the version from 2008-03-14
09:20 CET):

,----[ *Raw preview of mail to foo* ]
| To: foo
| Subject: =3D?utf-8?Q?B=3DC3=3DA4r?=3D
| [...]
| MIME-Version: 1.0
| Content-Type: text/plain; charset=3Dus-ascii
`----

Current behavior (see version info below):

,----[ *Backtrace* ]
| 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")
|   quoted-printable-encode-region(1 4 nil "-=AB^H=BB\n\f !#-'*+0-9A-Z\\^=
`-~=AB^?=BB)
|   rfc2047-q-encode-string("B=AB\303=BB=AB\244=BB")
|   rfc2047-encode-1(9 "B\x00e4r" utf-8 rfc2047-q-encode-string "=3D?utf-=
8?Q?" " " "")
|   rfc2047-encode(18 21)
|   rfc2047-encode-region(18 22)
|   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)
`----

(with: =AB^H=BB =3D #x8, =AB^?=BB =3D #x7f, =AB\303=BB =3D #o303, =AB\244=
=BB =3D #o244)

--8<---------------cut here---------------start------------->8---
In GNU Emacs 23.0.60.6 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
 of 2008-03-16 on viandante
Windowing system distributor `The X.Org Foundation', version 11.0.7019990=
2
configured using `configure '--prefix=3D/import/xtra/emacs/HEAD'
 '--exec-prefix=3D/import/xtra/emacs/HEAD-i686' 'CFLAGS=3D-Wno-pointer-si=
gn
 -O0 -fno-crossjumping -gdwarf-2 -g3''

*OR*

In GNU Emacs 23.0.60.8 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
 of 2008-03-17 on viandante
Windowing system distributor `The X.Org Foundation', version 11.0.7019990=
2
configured using `configure '--prefix=3D/import/xtra/emacs/HEAD'
 '--exec-prefix=3D/import/xtra/emacs/HEAD-i686' 'CFLAGS=3D-Wno-pointer-si=
gn
 -O0 -fno-crossjumping -gdwarf-2 -g3''

with...

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=3Dlocal
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Bye, Reiner.
--=20
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/