GNU bug report logs - #14885
`call-process-region' fails on Windows (in UNC default-directory)

Previous Next

Package: emacs;

Reported by: Richard Copley <rcopley <at> gmail.com>

Date: Tue, 16 Jul 2013 21:29:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14885 in the body.
You can then email your comments to 14885 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14885; Package emacs. (Tue, 16 Jul 2013 21:29:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Richard Copley <rcopley <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 16 Jul 2013 21:29:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Richard Copley <rcopley <at> gmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: `call-process-region' fails on Windows (in UNC default-directory)
Date: Tue, 16 Jul 2013 22:28:40 +0100
C-x C-f \\localhost\share <return>
M-! dir <return>
;; => Opening process input file: invalid argument, //localhost/share/NUL:

When `call-process-region' calls `call-process', it passes NULL_DEVICE
for the INFILE argument. It should pass nil instead.  I’m not sure
why, but the error above doesn’t happen if default-directory is a path
with a drive letter.

(For some reason NULL_DEVICE is defined as "NUL:" in my `config.h'.)

In GNU Emacs 24.3.50.2 (i686-pc-mingw32)
 of 2013-07-16 on MACHINE
Bzr revision: 113435 eggert <at> cs.ucla.edu-20130716183052-hq36ti50qgh0o0wv
Windowing system distributor `Microsoft Corp.', version 6.2.9200
Configured using:
 `configure --prefix c:/emacs/emacs-113425
 --enable-locallisppath=%emacs_dir%/../site-lisp CPPFLAGS='-I
 G:/usr/include -I C:/GnuWin32/include' LDFLAGS='-L G:/usr/lib -L
 C:/GnuWin32/lib''

Important settings:
  value of $LANG: ENG
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-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
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x C-f \ \ l o c a l h o s t \ s h a r e <return>
M-! d i r <return> M-x r - e - b <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
(Shell command failed with error)
shell-command-on-region: Opening process input file: invalid argument,
//localhost/share/NUL:

Load-path shadows:
None found.

Features:
(shadow sort nadvice 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 mail-prsvr mail-utils shell pcomplete comint
ansi-color ring dired time-date tooltip 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 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)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14885; Package emacs. (Tue, 16 Jul 2013 22:43:01 GMT) Full text and rfc822 format available.

Message #8 received at 14885 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Richard Copley <rcopley <at> gmail.com>
Cc: 14885 <at> debbugs.gnu.org
Subject: Re: `call-process-region' fails on Windows (in UNC default-directory)
Date: Tue, 16 Jul 2013 15:42:49 -0700
Thanks, I installed what I hope is the obvious patch, as trunk
bzr 113439.  Please give it a try, as I don't use Microsoft Windows
and so haven't tested it there.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#14885; Package emacs. (Wed, 17 Jul 2013 06:37:02 GMT) Full text and rfc822 format available.

Message #11 received at 14885 <at> debbugs.gnu.org (full text, mbox):

From: Richard Copley <rcopley <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 14885 <at> debbugs.gnu.org
Subject: Re: `call-process-region' fails on Windows (in UNC default-directory)
Date: Wed, 17 Jul 2013 07:36:26 +0100
On 16 July 2013 23:42, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> Thanks, I installed what I hope is the obvious patch, as trunk
> bzr 113439.  Please give it a try, as I don't use Microsoft Windows
> and so haven't tested it there.
Thank you, it seems to work.




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Wed, 17 Jul 2013 12:55:03 GMT) Full text and rfc822 format available.

Notification sent to Richard Copley <rcopley <at> gmail.com>:
bug acknowledged by developer. (Wed, 17 Jul 2013 12:55:07 GMT) Full text and rfc822 format available.

Message #16 received at 14885-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Richard Copley <rcopley <at> gmail.com>
Cc: 14885-done <at> debbugs.gnu.org
Subject: Re: `call-process-region' fails on Windows (in UNC default-directory)
Date: Wed, 17 Jul 2013 05:54:03 -0700
Thanks for checking; closing the bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 15 Aug 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.