From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cornelius Mika Newsgroups: gmane.emacs.bugs Subject: bug#21831: 24.5 on Windows; start-process modifies its PROGRAM argument Date: Wed, 4 Nov 2015 21:31:55 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11399e6e8286a40523bce85c X-Trace: ger.gmane.org 1446669981 27199 80.91.229.3 (4 Nov 2015 20:46:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Nov 2015 20:46:21 +0000 (UTC) To: 21831@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 04 21:46:12 2015 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 1Zu4wc-0002Fq-T4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Nov 2015 21:46:11 +0100 Original-Received: from localhost ([::1]:57084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu4wc-0004YJ-3V for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Nov 2015 15:46:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu4wX-0004YD-ST for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 15:46:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zu4wU-0004hi-V7 for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 15:46:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu4wU-0004hb-Rz for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 15:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zu4wU-0006O7-OY for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 15:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Cornelius Mika Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Nov 2015 20:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21831 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144666990424471 (code B ref -1); Wed, 04 Nov 2015 20:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2015 20:45:04 +0000 Original-Received: from localhost ([127.0.0.1]:53730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zu4vV-0006M8-UC for submit@debbugs.gnu.org; Wed, 04 Nov 2015 15:45:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55187) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zu4jQ-00063T-Tl for submit@debbugs.gnu.org; Wed, 04 Nov 2015 15:32:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zu4jP-000112-CX for submit@debbugs.gnu.org; Wed, 04 Nov 2015 15:32:32 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu4jP-00010y-9b for submit@debbugs.gnu.org; Wed, 04 Nov 2015 15:32:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu4jL-0003F5-2I for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 15:32:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zu4jJ-00010Y-TT for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 15:32:26 -0500 Original-Received: from mail-qg0-x233.google.com ([2607:f8b0:400d:c04::233]:35846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu4jJ-00010O-Nk for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2015 15:32:25 -0500 Original-Received: by qgad10 with SMTP id d10so50383406qga.3 for ; Wed, 04 Nov 2015 12:32:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=DsXWZ3dvv6pqtHntI2qi0YMh8S7hLj67PAk7NzoYWd0=; b=dDTYLTE3DDOijtlL+h+O0RfTs2X2DqK4ioNhsy8R4ZS2uiqB4S7vbkk2MS3rbqYMxT 8eU6IG1QI9WY8uWRpjhWTI/Fag2zH0ww80NJhJ8l7HWAOKY27ioe0AMebVir26HIb9ne uqt0m2TkTPqOdmbfsMSw9YEOinIKavwCTKqPOthFOcHBdUtwyRcrdmMcUoeM6/QaxjYB ADqln+H9XplSuMZJ4zrU8ZmGzz7uWWbrCmVeA+kz6IHloPbsHnCVi1qMgLafdP8zCmzx u+lEe2w/rj2OzYwqG00Pg5Tk5XEB5YkdeqyQTzC7Of8aj4BrUEFwQP8SPJhxexC86aiD voaw== X-Received: by 10.140.92.48 with SMTP id a45mr3809651qge.54.1446669145243; Wed, 04 Nov 2015 12:32:25 -0800 (PST) Original-Received: by 10.140.101.170 with HTTP; Wed, 4 Nov 2015 12:31:55 -0800 (PST) X-Google-Sender-Auth: I2kXN3O1P4Anwvxhes3Z0KaILBE X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 04 Nov 2015 15:45:00 -0500 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: 208.118.235.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:108458 Archived-At: --001a11399e6e8286a40523bce85c Content-Type: text/plain; charset=UTF-8 start-process normalizes the given PROGRAM path by destructively modifying its contents. This is problematic if the path variable is reused later on. Minimal repro: (let ((path "c:/Windows/System32/clip.exe")) (start-process "" nil path) path) ; => "c:\\Windows\\System32\\clip.exe" In GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.3.9600 Configured using: `configure --prefix=/c/usr --host=i686-pc-mingw32' Important settings: value of $LANG: DEU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-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 line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar 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 minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 73857 5808) (symbols 32 17432 0) (miscs 32 33 131) (strings 16 10612 4319) (string-bytes 1 268415) (vectors 8 9520) (vector-slots 4 383153 5554) (floats 8 57 68) (intervals 28 196 45) (buffers 508 11)) --001a11399e6e8286a40523bce85c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
start-process normalizes the given PROGRAM path by de= structively modifying its contents.
This is problematic if th= e path variable is reused later on.

Minimal repro:=
(let ((path "c:/Windows/System32/clip.exe"))
=C2=A0 (start-process "" nil path)
=C2=A0 path) ; =3D&= gt; "c:\\Windows\\System32\\clip.exe"

In= GNU Emacs 24.5.1 (i686-pc-mingw32)
=C2=A0of 2015-04-11 on LEG570=
Windowing system distributor `Microsoft Corp.', version 6.3.= 9600
Configured using:
=C2=A0`configure --prefix=3D/c/u= sr --host=3Di686-pc-mingw32'

Important setting= s:
=C2=A0 value of $LANG: DEU
=C2=A0 locale-coding-syst= em: cp1252

Major mode: Lisp Interaction
=
Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t=
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-m= ode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-numb= er-mode: t
=C2=A0 transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU sys= tem, type C-h C-a.

Load-path shadows:
No= ne found.

Features:
(shadow sort gnus-ut= il mail-extr emacsbug message format-spec rfc822 mml
easymenu mml= -sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev = gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util = help-fns mail-prsvr mail-utils time-date tooltip electric
uniquif= y ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp
w32-= common-fns disp-table w32-win w32-vars tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar 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 h= ebrew
greek romanian slovak czech european ethiopic indian cyrill= ic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev m= inibuffer nadvice
loaddefs button faces cus-face macroexp files t= ext-properties overlay
sha1 md5 base64 format env code-pages mule= custom widget
hashtable-print-readable backquote make-network-pr= ocess w32notify w32
multi-tty emacs)

Mem= ory information:
((conses 8 73857 5808)
=C2=A0(symbols = 32 17432 0)
=C2=A0(miscs 32 33 131)
=C2=A0(strings 16 1= 0612 4319)
=C2=A0(string-bytes 1 268415)
=C2=A0(vectors= 8 9520)
=C2=A0(vector-slots 4 383153 5554)
=C2=A0(floa= ts 8 57 68)
=C2=A0(intervals 28 196 45)
=C2=A0(buffers = 508 11))

--001a11399e6e8286a40523bce85c--