git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] On Cygwin support both UNIX and DOS style path-names

From
Pascal Obry <pascal@obry.net>
Date
Jul 28, 2011, 09:28 UTC
Message-ID
<4E312BD6.6020901@obry.net>
In-Reply-To
<FD5C22CB4AC2439D8151F6B7CD4B7CC9@martinic.local>
Theo,
Show 8 quoted lines
>> +#define has_dos_drive_prefix(path) (isalpha(*(path))&&  (path)[1] == ':')
>> +#define is_dir_sep(c) ((c) == '/' || (c) == '\\')
>
> I think that by defining is_dir_sep you enable DOS/Windows style paths
> throughout Git, so you might want to check compat/mingw.h for other, related
> changes. You will probably at least want the MinGW version of
> find_last_dir_sep as well, because the default find_last_dir_sep doesn't use
> is_dir_sep.
Thanks for the review/feedback. Will work on that and propose another patch.
Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
Previous: Theo NiessinkNext: Theo Niessink
Message 2 of 3 in “Re: [PATCH] On Cygwin support both UNIX and DOS style path-names”
  1. Theo NiessinkJul 27, 2011
  2. Pascal ObryJul 28, 2011
  3. Theo NiessinkJul 28, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.