From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Du Bois Newsgroups: gmane.emacs.bugs Subject: bug#7210: 23.2; w32 emacsclient passes malformed -dir when run from a root directory Date: Wed, 13 Oct 2010 16:48:11 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1287015183 494 80.91.229.12 (14 Oct 2010 00:13:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Oct 2010 00:13:03 +0000 (UTC) To: 7210@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 14 02:13:01 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6BRG-0002J6-AS for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Oct 2010 02:12:58 +0200 Original-Received: from localhost ([127.0.0.1]:46525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6BRE-0004mR-5j for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Oct 2010 20:12:52 -0400 Original-Received: from [140.186.70.92] (port=44810 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6BQi-0004Wy-HR for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 20:12:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6BQb-00076H-NC for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 20:12:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6BQb-00076D-Ke for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 20:12:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P6B82-00083a-8D; Wed, 13 Oct 2010 19:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Du Bois Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Oct 2010 23:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7210 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.128701395430958 (code B ref -1); Wed, 13 Oct 2010 23:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Oct 2010 23:52:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6B7Z-00083H-8k for submit@debbugs.gnu.org; Wed, 13 Oct 2010 19:52:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6B0X-00080H-8B for submit@debbugs.gnu.org; Wed, 13 Oct 2010 19:45:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6B3v-00035z-7F for submit@debbugs.gnu.org; Wed, 13 Oct 2010 19:48:48 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:51310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6B3v-00035v-4T for submit@debbugs.gnu.org; Wed, 13 Oct 2010 19:48:47 -0400 Original-Received: from [140.186.70.92] (port=57916 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6B3t-0005yp-Ui for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 19:48:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6B3s-00035h-Ln for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 19:48:45 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:46050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6B3s-00035b-CN for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 19:48:44 -0400 Original-Received: by bwz19 with SMTP id 19so22411bwz.0 for ; Wed, 13 Oct 2010 16:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=MUefkVSLrGGJ8bKnW7tWS8fKZ0S97OC+qX8ZDQ4zVPE=; b=w0Bkfnhd7zA4o2J+VNvzgMGnSSICnQJ9sykTt6+H9pmq2kK14vhHWyiDxbOyKX4wSo JcNb8mgwZZEoL1BcWX9pO9ywHTBnVD04zQmCFfC9gw4kciP9SBBX0dwDt3F/CHQ2fUHR bO8s1emrLeCt8PNTBxmKGFVXCBZk/Dq9tSk4A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=IAfIa+dXSO7iUiaWLHkm3W/P7iLfLCRCwGMuFqEK3k3UnIhxketWvDcGh3dyBTwmPH KU6lP6+EV3dB4Gv3+x3aLx1NU7buyY3fjbUa5ET3Vcfb1fhRw8/beNdyTuBbRCC+RNqy ddps3dnGY3DyyQx8FDVEOz38EJ7eoQOc1/pCc= Original-Received: by 10.204.102.68 with SMTP id f4mr8360701bko.30.1287013722726; Wed, 13 Oct 2010 16:48:42 -0700 (PDT) Original-Received: by 10.204.82.79 with HTTP; Wed, 13 Oct 2010 16:48:11 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Wed, 13 Oct 2010 19:52:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 13 Oct 2010 19:53:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40874 Archived-At: This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': 1. run emacs -q 2. load-library "server" 3. setq server-log t 4. M-x server-start In a shell: [c:\dfp-stack]emacsclient -V emacsclient 23.2 [c:\dfp-stack]emacsclient -e nil *server* log shows: Wed Oct 13 16:35:06 2010 server <127.0.0.1:2260>: Received -auth [elided] -dir c:\dfp-stack/ -current-frame -eval nil [c:\dfp-stack]cd .. [C:\]emacsclient -e nil *server* log shows: Wed Oct 13 16:35:23 2010 server <127.0.0.1:2261>: Received -auth [elided] -dir C:\/ -current-frame -eval nil In a non-root directory (c:\dfp-stack) the -dir argument contains a single trailing slash. In a root directory (c:\) the -dir argument contains two trailing slashes. The user-visible symptom is that files edited in a root directory have an incorrect absolute path, one that looks like a UNC path. It causes emacs to hang while windows times out looking for a server. For example: [C:\dfp-stack]emacsclient -n P4CONFIG Wed Oct 13 16:40:57 2010 server <127.0.0.1:2265>: New file: c:/dfp-stack/P4CONFIG [C:\]emacsclient -n foo Wed Oct 13 16:14:30 2010 server <127.0.0.1:2205>: New file: //foo.txt If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file c:/apps/emacs-23.2/etc/DEBUG. In GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include' 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: Fundamental Minor modes in effect: 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 blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-( C-x k n C-x k M-( l o a d - l i b r a r y SPC " s e r v e r " C-e C-j M-( s e t q SPC s e r v e r - l o g SPC t C-e C-j M-( s e r v e r - s t a t r t C-e C-j M-x s e r v e r - s t a r t C-x b SPC s e r M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. insert-parentheses: Buffer is read-only: # Preparing tutorial ... Save your position in the tutorial? (y or n) Tutorial position not saved Loading server...done Restarting server Load-path shadows: None found. Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug server tutorial help-mode easymenu view 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 loaddefs 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)