From: "Ulrich Müller" <ulm@gentoo.org>
To: 15091@debbugs.gnu.org
Subject: bug#15091: 24.3.50; system-configuration-options variable contains control chars
Date: Wed, 14 Aug 2013 01:04:28 +0200 [thread overview]
Message-ID: <21002.47996.515445.797279@a1i15.kph.uni-mainz.de> (raw)
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@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
next reply other threads:[~2013-08-13 23:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 23:04 Ulrich Müller [this message]
2013-08-14 2:15 ` bug#15091: 24.3.50; system-configuration-options variable contains control chars Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=21002.47996.515445.797279@a1i15.kph.uni-mainz.de \
--to=ulm@gentoo.org \
--cc=15091@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.