emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15091: closed (24.3.50; system-configuration-optio


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15091: closed (24.3.50; system-configuration-options variable contains control chars)
Date: Wed, 14 Aug 2013 02:16:01 +0000

Your message dated Tue, 13 Aug 2013 22:15:40 -0400
with message-id <address@hidden>
and subject line Re: bug#15091: 24.3.50; system-configuration-options variable 
contains control chars
has caused the debbugs.gnu.org bug report #15091,
regarding 24.3.50; system-configuration-options variable contains control chars
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15091: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15091
GNU Bug Tracking System
Contact address@hidden with problems
--- 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 ---
--- Begin Message --- Subject: Re: bug#15091: 24.3.50; system-configuration-options variable contains control chars Date: Tue, 13 Aug 2013 22:15:40 -0400 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Version: 24.4

Thanks.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]