unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Eli Zaretskii" <eliz@elta.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: [eric.pement@moody.edu: ediff merge fails on Win2K - RESOLVED!]
Date: Thu, 27 Mar 2003 22:10:12 +0200	[thread overview]
Message-ID: <1438-Thu27Mar2003221012+0200-eliz@elta.co.il> (raw)
In-Reply-To: <E18ycgJ-00081g-00@fencepost.gnu.org> (message from Richard Stallman on Thu, 27 Mar 2003 14:04:55 -0500)

> From: Richard Stallman <rms@gnu.org>
> Date: Thu, 27 Mar 2003 14:04:55 -0500
> 
> Kifer thinks that call-process is the right place to fix this,
> and that seems like a plausible idea.  Does anyone who works
> on DOS or Windows want to fix this?

I'm not sure Eric's diagnosis, namely, that the long file names
overflow the Windows shell's command-line length limit, is correct.
Only the DOS shell has a ridiculously short (126-character) limit on
command lines; all the other MS shells have much more resonable limits
of several KBytes at least.  I think 32KB is the most ``popular''
limit.

I suspect that the OP had a DOS port of Diffutils installed, and thus
Windows invoked them thru the DOS shell COMMAND.COM, which indeed has
that 126-char limit.  If that's true, the solution is to install a
native Windows port of Diffutils.

In any case, Eric's suggestion at solving the problem is problematic,
as IIRC it is next to impossible to find out what is the actual
limitation on the command-line length on a given Windows system.  For
starters, it depends not only on the shell but also on the program
being invoked (different compilers impose different limitations due to
their startup code that processes the command line into argv[]).  All
we could do is use some approximation which could lose in some cases.

It could also be that it's not the command-line's length that poses
the problem, but the fact that the file names have embedded blanks.
Perhaps those blanks are not handled like Windows shells expect (e.g.,
perhaps Emacs uses a Unix-style escaping of the blanks).

If my guesses are wrong, someone, preferably Eric himself, should
investigate this problem a bit more, since I cannot see how else could
such a problem happen.

  reply	other threads:[~2003-03-27 20:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-27 19:04 [eric.pement@moody.edu: ediff merge fails on Win2K - RESOLVED!] Richard Stallman
2003-03-27 20:10 ` Eli Zaretskii [this message]
2003-03-28 15:20   ` Richard Stallman
     [not found] ` <5.1.0.14.2.20030401083033.02fa8608@email.moody.edu>
2003-04-01 19:05   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1438-Thu27Mar2003221012+0200-eliz@elta.co.il \
    --to=eliz@elta.co.il \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).