From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich =?UTF-8?Q?M=C3=BCller?= Newsgroups: gmane.emacs.bugs Subject: bug#15091: 24.3.50; system-configuration-options variable contains control chars Date: Wed, 14 Aug 2013 01:04:28 +0200 Message-ID: <21002.47996.515445.797279@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376435179 20637 80.91.229.3 (13 Aug 2013 23:06:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2013 23:06:19 +0000 (UTC) To: 15091@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 14 01:06:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9NfN-0005TD-Oh for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Aug 2013 01:06:17 +0200 Original-Received: from localhost ([::1]:36042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9NfN-0007Xi-AD for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Aug 2013 19:06:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9NfE-0007XF-HX for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2013 19:06:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9Nf8-0005NX-KA for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2013 19:06:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9Nf8-0005NT-HN for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2013 19:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V9Nf8-0002kV-1i for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2013 19:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich =?UTF-8?Q?M=C3=BCller?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Aug 2013 23:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15091 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137643510810494 (code B ref -1); Tue, 13 Aug 2013 23:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Aug 2013 23:05:08 +0000 Original-Received: from localhost ([127.0.0.1]:57070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9NeF-0002jB-4V for submit@debbugs.gnu.org; Tue, 13 Aug 2013 19:05:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42141) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9NeC-0002ie-Fa for submit@debbugs.gnu.org; Tue, 13 Aug 2013 19:05:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9Ne1-0004xb-7v for submit@debbugs.gnu.org; Tue, 13 Aug 2013 19:04:59 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9Ne1-0004xX-5M for submit@debbugs.gnu.org; Tue, 13 Aug 2013 19:04:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9Ndv-0006WX-Mv for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2013 19:04:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9Ndq-0004wF-99 for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2013 19:04:47 -0400 Original-Received: from a1www.kph.uni-mainz.de ([134.93.134.1]:36220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9Ndq-0004tO-1H for bug-gnu-emacs@gnu.org; Tue, 13 Aug 2013 19:04:42 -0400 Original-Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.4/8.13.4) with ESMTP id r7DN4Tcq016720 for ; Wed, 14 Aug 2013 01:04:29 +0200 Original-Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.6/8.14.2) with ESMTP id r7DN4SB6010428; Wed, 14 Aug 2013 01:04:28 +0200 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.6/8.14.6/Submit) id r7DN4SRM010426; Wed, 14 Aug 2013 01:04:28 +0200 X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77334 Archived-At: 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