From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 08 12:42:17 2010 Received: (at submit) by debbugs.gnu.org; 8 Aug 2010 16:42:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oi8wy-0002UQ-OM for submit@debbugs.gnu.org; Sun, 08 Aug 2010 12:42:17 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oi8wv-0002UL-N0 for submit@debbugs.gnu.org; Sun, 08 Aug 2010 12:42:15 -0400 Received: from lists.gnu.org ([199.232.76.165]:40925) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Oi8xc-0000Ev-CI for submit@debbugs.gnu.org; Sun, 08 Aug 2010 12:42:56 -0400 Received: from [140.186.70.92] (port=50754 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oi8xc-0001ib-0g for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 12:43:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oi6OU-0004TK-2j for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 09:58:31 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:44801) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oi6OT-0003fR-UF for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 09:58:30 -0400 Received: by gwj16 with SMTP id 16so4324305gwj.0 for ; Sun, 08 Aug 2010 06:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=tb0/jKRWRxszfJNWsGK7/+YDkclPlaJbpLhpPxsFXec=; b=n7eLmeCWn1S17qn69vKYVFGi3JodpwmvWd9ahKlcK+3k/8YD5Qkv1lNmC486f1fXKo 4HwYLsPFD7sUPaLo0GC0FscZTmqJfjMvlGTgwZcXZa5DgTPMaEBa5XOBoeZBx64XfmhS YbHOFPgVOwRFVQRmMyzLLwxnuiJXk/gs+lIds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=j5BxdTrRTkgQrPVXSBTCp2+13FRBx3+Ylb5/DpmFGWDTitEFppTx7l8VNwUZjEtsug F0zArYK7FGEr7PWWQekcCX99E8JNOSFNVmNtYAda3mmxewvF/8eza3fobKYnyI4BokiQ aBnKYVag8tF3O8f/HXOxJaNk9SwuaqZPvoGqA= Received: by 10.100.11.1 with SMTP id 1mr16556096ank.93.1281275848011; Sun, 08 Aug 2010 06:57:28 -0700 (PDT) Received: from [192.168.1.3] (97-122-105-26.hlrn.qwest.net [97.122.105.26]) by mx.google.com with ESMTPS id f22sm6415657anh.24.2010.08.08.06.57.26 (version=SSLv3 cipher=RC4-MD5); Sun, 08 Aug 2010 06:57:26 -0700 (PDT) Message-ID: <4C5EB7C3.5030705@gmail.com> Date: Sun, 08 Aug 2010 07:57:23 -0600 From: Christoph User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Corrupt system-configuration-options variable when using forward slashes Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) On Windows, the following warnig appears when specifying compiler flags for configure.bat with forward slashes: gcc -I. -c -gdwarf-2 -g3 -mno-cygwin -mtune=pentium4 -O2 -DENABLE_CHECKING -DXASSERTS -fno-crossjumping -IC:\Progra~2\GnuWin32\include -ID:\devel\emacs\libXpm-3.5.8\include -ID:\devel\emacs\libXpm-3.5.8\src -Demacs=1 -DHAVE_CONFIG_H -I../nt/inc -DHAVE_NTGUI=1 -DUSE_CRT_DLL=1 -o oo-spd/i386/w32.o w32.c w32.c:1955:27: warning: unknown escape sequence '\P' w32.c:1955:27: warning: unknown escape sequence '\G' w32.c:1955:27: warning: unknown escape sequence '\i' w32.c:1955:27: warning: unknown escape sequence '\d' w32.c:1955:27: warning: unknown escape sequence '\l' w32.c:1955:27: warning: unknown escape sequence '\i' w32.c:1955:27: warning: unknown escape sequence '\d' w32.c:1955:27: warning: unknown escape sequence '\l' w32.c:1955:27: warning: unknown escape sequence '\s' The warning occurs in the following line of `get_emacs_configuration_options' function: strcat (options_buffer, USER_CFLAGS); Obviously, parts of the Windows-style path are interpreted as escape characters. The result is a corrupt variable `system-configuration-options': "--with-gcc (4.4) --cflags -IC:Progra~2GnuWin32include -ID:develmacslibXpm-3.5.8include -ID:develmacslibXpm-3.5.8src" In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2010-08-07 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7600 configured using `configure --with-gcc (4.4) --cflags -IC:Progra~2GnuWin32include -ID:develmacslibXpm-3.5.8include -ID:develmacslibXpm-3.5.8src' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: C/l Minor modes in effect: ido-everywhere: t yas/global-mode: t yas/minor-mode: t global-auto-revert-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t abbrev-mode: t Recent input: C-x C-f M-p M-p M-p M-n M-n d : / d e v e l e m a c s e m a c s t r u n s r c w 3 2 M-g M-g 1 9 5 5 C-SPC C-SPC C-n C-n C-n C-n M-w C-c M-w C-SPC C-SPC C-n M-w C-c RET r e p o r Recent messages: Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/anything-c-adaptive-history...done Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins.el (source)...done Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/custom.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Loading vc-bzr...done Mark set [2 times] Mark activated Mark set [2 times] Mark activated call-interactively: End of buffer Load-path shadows: None found. Features: (shadow sort gnus-cite mail-extr gnus-msg gnus-art mm-uu mml2015 pgg pgg-parse pgg-def epg-config mm-view smime password-cache dig mailcap gnus-sum nnoo gnus-group time-date gnus-undo nnmail mail-source format-spec gnus-start gnus-spec gnus-int gnus-range gnus-win message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr emacsbug vc-bzr sha1 hex-util server js2-mode-autoloads rainbow-mode-autoloads package re-builder ibuffer nav nav-tags python-21 python nav-bufs xcscope anything-config warnings browse-url semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw loaddefs eieio byte-opt bytecomp byte-compile mode-local cedet imenu bookmark pp dired rx ffap thingatpt anything google-c-style cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs grep-o-matic grep compile comint browse-kill-ring+ browse-kill-ring second-sel ido yasnippet dropdown-list derived easy-mmode assoc etags-table etags ring remember zenburn color-theme edmacro kmacro wid-edit cl cl-19 sendmail regexp-opt reporter easymenu uniquify advice help-fns advice-preload autorevert delsel tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 22 19:20:53 2010 Received: (at 6820-done) by debbugs.gnu.org; 22 Sep 2010 23:20:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyYcO-0005ea-MQ for submit@debbugs.gnu.org; Wed, 22 Sep 2010 19:20:52 -0400 Received: from mail-iw0-f172.google.com ([209.85.214.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyYcL-0005eV-OK for 6820-done@debbugs.gnu.org; Wed, 22 Sep 2010 19:20:50 -0400 Received: by iwn3 with SMTP id 3so860168iwn.3 for <6820-done@debbugs.gnu.org>; Wed, 22 Sep 2010 16:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=DtchOWfkrw28pG6Of7JRWF4CB4Oi8INMAJ0xvifQtOc=; b=WoZgQCRR62K8RVxiGUjgyUsIhYiUrnYW6f6PZagwHKS0DIrppUC9PPrDmolwpICpdN ePOZgNivrWE8JE20G3IQ0kmn+i6a5v7lJ0uOz8QsOMmS1lSadlWmkaZZct/fCAabwh8d OMT7mxmy1o4n56gsI23nuGygzKyV+rwVnwX3I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=erj3l/2rqZEEvPRRYjOyD03IHbQPh9gROFbmygMDW+y8N3FI3xfmPqMnUTU/Fc0RT2 WwWDGFJH4xZLPi+8lvJAG4x75p85DbwJkMvNUGEU63m2oylxZ/qYc7sxiQccKMh1E4CK JghGbnSmg59f3mDLbF+Xoo1efU1s8QRo/RpG8= Received: by 10.231.191.147 with SMTP id dm19mr1043888ibb.6.1285197805434; Wed, 22 Sep 2010 16:23:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.196.71 with HTTP; Wed, 22 Sep 2010 16:22:45 -0700 (PDT) In-Reply-To: <4C5EB7C3.5030705@gmail.com> References: <4C5EB7C3.5030705@gmail.com> From: Juanma Barranquero Date: Thu, 23 Sep 2010 01:22:45 +0200 Message-ID: Subject: Re: bug#6820: 24.0.50; Corrupt system-configuration-options variable when using forward slashes To: Christoph Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6820-done Cc: 6820-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > On Windows, the following warning appears when specifying compiler flags = for > configure.bat with forward slashes: > > gcc -I. -c -gdwarf-2 -g3 -mno-cygwin -mtune=3Dpentium4 -O2 -DENABLE_CHECK= ING > -DXASSERTS -fno-crossjumping -IC:\Progra~2\GnuWin32\include > -ID:\devel\emacs\libXpm-3.5.8\include -ID:\devel\emacs\libXpm-3.5.8\src > -Demacs=3D1 -DHAVE_CONFIG_H -I../nt/inc -DHAVE_NTGUI=3D1 -DUSE_CRT_DLL=3D= 1 -o > oo-spd/i386/w32.o w32.c You mean backslashes. :-) Currently we don't support passing backslashes or quotes in arguments to the --cflags configure.bat option, because as you point out they break compilation of w32.c:get_emacs_configuration_options. There's no easy way to fix that from configure.bat in a simple and portable way; the next best fix is just err out with a clear message when running configure.bat so the user can react immediately, instead of getting a not-so-clear error or warning during compilation. I've implemented the check only for GCC because I don't have access to MSVC; but it should be trivial to add if MSVC has some command option similar to GCC's -Werror (turn any warning into an error). =C2=A0 =C2=A0 Juanma From unknown Sun Jun 22 11:40:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 21 Oct 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator