From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#17938: Very long path name can not handle in windows mingw emacs. Date: Wed, 29 Jun 2022 08:12:23 -0700 Message-ID: References: <20140705.000554.460429865.trueroad@trueroad.jp> <83wqbsevly.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3050"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Masamichi HOSODA , 17938@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 29 17:13:23 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6ZNb-0000Wh-Py for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 17:13:23 +0200 Original-Received: from localhost ([::1]:43916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6ZNa-0004UX-Bq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 11:13:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6ZNH-0004QO-Ee for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 11:13:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6ZNF-0005PX-MY for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 11:13:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6ZNF-0003wS-Ia for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 11:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jun 2022 15:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17938 X-GNU-PR-Package: emacs Original-Received: via spool by 17938-submit@debbugs.gnu.org id=B17938.165651555115100 (code B ref 17938); Wed, 29 Jun 2022 15:13:01 +0000 Original-Received: (at 17938) by debbugs.gnu.org; 29 Jun 2022 15:12:31 +0000 Original-Received: from localhost ([127.0.0.1]:59839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6ZMl-0003vO-Fw for submit@debbugs.gnu.org; Wed, 29 Jun 2022 11:12:31 -0400 Original-Received: from mail-pl1-f180.google.com ([209.85.214.180]:34671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6ZMj-0003uq-If for 17938@debbugs.gnu.org; Wed, 29 Jun 2022 11:12:30 -0400 Original-Received: by mail-pl1-f180.google.com with SMTP id jh14so14418589plb.1 for <17938@debbugs.gnu.org>; Wed, 29 Jun 2022 08:12:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=kwd9JEJASc8OyhVkZVd/G8rhT81aZBQ+sQfWW2W5CFc=; b=rYVbOTRDQOGHFy7iqcbYGNN+OLSLTxS/ep7B70icTCCJQtNwRRu62mlgaLK5AZ+bWp Y2QRY0ewrkIJ3JwBF1rl/sFFxBlo2FCEzQoT9XtuWqGQd9NnUhyLwOtdxA1O/ZCoa1XA jDtnSpuGeyjhEHsSDLUy/s2fZZwYIJrbpLFk92VbouUSSu4JXFxpsBBFgZ4xIOgpa3Hg M2loypgHbjfNIVv5XdmNA8MA5gEVKoFlgdcDgFXulKDnnNqbOl4lpctOSGDD3b2YwaGE RD469Kcv5sWqWDnzvRuAUvgatTwGStMRbXGTOJFScvolbCZIn/wwpVt6YFE4cIEx/l/+ Rzzg== X-Gm-Message-State: AJIora/Eerunt9ozbDpXnd4XAYE1YS8WkA9hSyyG2+gNys1yaaxLYYIc xd2mElVRJHA1W/e3i/jBhFQKfVybxBdPv84NG6A= X-Google-Smtp-Source: AGRyM1vaj29SrTvHeUd8TAKqlqDD0IW9AEok7v62SfaEPBTSX3nyF8itl6K/HJfHzYGsxV+ZHp1/l6zwkuyGyYmrxyY= X-Received: by 2002:a17:903:2444:b0:16b:917e:3b04 with SMTP id l4-20020a170903244400b0016b917e3b04mr8224767pls.145.1656515543983; Wed, 29 Jun 2022 08:12:23 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 29 Jun 2022 08:12:23 -0700 In-Reply-To: <83wqbsevly.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Jul 2014 23:07:21 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235642 Archived-At: tags 17938 + wontfix close 17938 thanks Eli Zaretskii 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.