--- Begin Message ---
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: address@hidden
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
--- End Message ---