all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15091: 24.3.50; system-configuration-options variable contains control chars
@ 2013-08-13 23:04 Ulrich Müller
  2013-08-14  2:15 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Müller @ 2013-08-13 23:04 UTC (permalink / raw)
  To: 15091

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-14  2:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-13 23:04 bug#15091: 24.3.50; system-configuration-options variable contains control chars Ulrich Müller
2013-08-14  2:15 ` Glenn Morris

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.