--- Begin Message ---
Subject: |
23.0.60; Infinite loop in encode-coding-string (utf-7-imap) |
Date: |
Mon, 28 Apr 2008 12:51:13 +0200 |
Trying to encode a string including an ampersand to utf-7-imap has
emacs trying to produce an infinite number of copies of the string
"&-".
Simplest reproducing case:
(encode-coding-string "&" 'utf-7-imap)
Plain 'utf-7 works fine, as does decoding "&-" from utf-7-imap.
I have also tested this with a CVS version from ~7 days ago, with the
same result.
In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9)
of 2008-03-19 on vernadsky, modified by Debian
(emacs-snapshot package, version 1:20080228-1ubuntu1)
Windowing system distributor `The X.Org Foundation', version 11.0.10400090
configured using `configure '--build' 'i486-linux-gnu' '--host'
'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info'
'--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.0.60/leim'
'--with-x=yes' '--with-x-toolkit=gtk' '--enable-font-backend'
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN
-DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''
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: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
display-time-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
M-x r e p o r t - e m <tab> <return>
Recent messages:
Loading /etc/emacs/site-start.d/54jde.el (source)...done
Loading /etc/emacs/site-start.d/55ecb.el (source)...done
Loading /etc/emacs-snapshot/site-start.d/60nxml-mode.el (source)...
Loading /usr/share/emacs-snapshot/site-lisp/nxml-mode/rng-auto.el
(source)...done
Loading /etc/emacs-snapshot/site-start.d/60nxml-mode.el (source)...done
Preparing diary...
No diary entries for Monday, April 28, 2008
Loading time...done
Loading avoid...done
For information about GNU Emacs and the GNU system, type C-h C-a.
--- End Message ---
--- Begin Message ---
Subject: |
Re: Infinite loop in encode-coding-string (utf-7-imap) |
Date: |
Thu, 29 May 2008 17:58:14 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Thank you, the patch is now installed in the CVS trunk.
Stefan
--- End Message ---