From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Masamichi HOSODA <trueroad@sea.plala.or.jp>, 17938@debbugs.gnu.org
Subject: bug#17938: Very long path name can not handle in windows mingw emacs.
Date: Wed, 29 Jun 2022 08:12:23 -0700 [thread overview]
Message-ID: <CADwFkmmqsxTZEYXiA5Y-=V+kwX1=XTRftBVEGe8o3o5HCrY98A@mail.gmail.com> (raw)
In-Reply-To: <83wqbsevly.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Jul 2014 23:07:21 +0300")
tags 17938 + wontfix
close 17938
thanks
Eli Zaretskii <eliz@gnu.org> writes:
>> I think that the following is the cause.
>> In the mingw environment, MAX_PATH is defined as 260.
>> Emacs source src/w32.c uses MAX_PATH for filename buffers.
>
> The use of MAX_PATH is on purpose. It is not an accident, and
> defining it to a larger value will not solve the problem, see below.
>
>> However, NTFS (NT File System) can handle longer path name than 260 characters.
>
> Yes, NTFS can handle file names that are longer than 260 characters.
> However, that feature comes at a high price. First, every file name
> needs to be converted to the "\\?\X\foo" format, before handing it to
> system APIs and C library functions that accept file names. Next,
> some standard functions cannot handle such names (examples: _wchdir,
> _wstat), so they need to be rewritten using other, lower-level
> primitives. Finally, most programs and utilities that come with
> Windows cannot handle these files. The most striking example is the
> Windows Explorer, but since we are talking about Emacs, it is
> worthwhile to remember that no compiler, linker, or utility like Diff
> or Patch or Coreutils can handle such files. So you cannot copy,
> rename, or delete such files, except by the program which created
> them; and you cannot compile them. IOW, they are all but useless.
>
> For these reasons, I think that support for such file names is very
> low priority for Emacs on Windows.
I think this sounds like a wontfix, so I'm marking it as such and
closing this bug. Thanks.
prev parent reply other threads:[~2022-06-29 15:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-04 15:05 bug#17938: Very long path name can not handle in windows mingw emacs Masamichi HOSODA
2014-07-04 20:07 ` Eli Zaretskii
2022-06-29 15:12 ` Stefan Kangas [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkmmqsxTZEYXiA5Y-=V+kwX1=XTRftBVEGe8o3o5HCrY98A@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=17938@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=trueroad@sea.plala.or.jp \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.