GNU bug report logs - #15091
24.3.50; system-configuration-options variable contains control chars

Previous Next

Package: emacs;

Reported by: Ulrich Müller <ulm <at> gentoo.org>

Date: Tue, 13 Aug 2013 23:06:01 UTC

Severity: normal

Tags: patch

Found in version 24.3.50

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15091 in the body.
You can then email your comments to 15091 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15091; Package emacs. (Tue, 13 Aug 2013 23:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ulrich Müller <ulm <at> gentoo.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 13 Aug 2013 23:06:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ulrich Müller <ulm <at> gentoo.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; system-configuration-options variable contains control chars
Date: Wed, 14 Aug 2013 01:04:28 +0200
Tags: patch

In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, Motif Version 2.3.4)
 of 2013-08-14 on juno
Bzr revision: eggert <at> cs.ucla.edu-20130813211709-hz35oo6yqctj83q1
Windowing system distributor `The X.Org Foundation', version
 11.0.11402901
System Description:	NAME=Gentoo

When configure is called with an option containing backslashes, for
example:

   configure --program-transform-name="s/^\(emacs\)-[0-9].*-\1/\1/"

then these backslashes will be interpreted as escapes, leading to the
following result in lisp variable system-configuration-options:

   --program-transform-name=s/^(emacs)-[0-9].*-^A/^A/

(where ^A is really C-a, ASCII 0x01).

The patch below fixes the problem for me.


--- emacs-orig/configure.ac
+++ emacs/configure.ac
@@ -4439,7 +4439,7 @@
 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION,  "${canonical}",
 		   [Define to the canonical Emacs configuration name.])
 dnl Replace any embedded " characters (bug#13274).
-emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
+emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g" -e 's/\\\\/\\\\\\\\/g'`
 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${emacs_config_options}",
 		   [Define to the options passed to configure.])
 AH_TEMPLATE(config_opsysfile, [Some platforms that do not use configure




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 14 Aug 2013 02:16:01 GMT) Full text and rfc822 format available.

Notification sent to Ulrich Müller <ulm <at> gentoo.org>:
bug acknowledged by developer. (Wed, 14 Aug 2013 02:16:02 GMT) Full text and rfc822 format available.

Message #10 received at 15091-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 15091-done <at> debbugs.gnu.org
Subject: Re: bug#15091: 24.3.50;
 system-configuration-options variable contains control chars
Date: Tue, 13 Aug 2013 22:15:40 -0400
Version: 24.4

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 11 Sep 2013 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.