[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] canonicalize-lgpl: Canonicalize drive and dirsep too for Min
From: |
Bruno Haible |
Subject: |
Re: [PATCH] canonicalize-lgpl: Canonicalize drive and dirsep too for MinGW. |
Date: |
Sat, 11 Dec 2021 15:15:20 +0100 |
Jan Nieuwenhuizen wrote:
> Do you see a cheap way to return the correct casing for the rest of the
> file name?
No. [1]
> I agree it's quite debatable and a bit arbitrary to correct drive name
> casing. The reasons why opted to put in after all are:
>
> * it's cheap (I had the impression that if we found a cheap way to
> return the canonical casing for the full file name, as opposed to
> the unacceptably expensive scandir "solution", it might be
> something that could be discussed),
Still, it's adding complexity. And it does not help solving the original
problem, namely that the processor that interprets
#include "c:/foo.h"
#include "C:/FOO.H"
#include "C:\\FOO.H"
cannot just assume that different file names correspond to different
files on disk.
Why add complexity if solving the root problem requires a different
approach anyway?
Bruno
[1] https://lists.gnu.org/archive/html/bug-gnulib/2021-12/msg00069.html
- [PATCH] canonicalize-lgpl: Canonicalize drive and dirsep too for MinGW., Jan Nieuwenhuizen, 2021/12/10
- Re: [PATCH] canonicalize-lgpl: Canonicalize drive and dirsep too for MinGW., Paul Eggert, 2021/12/10
- Re: [PATCH] canonicalize-lgpl: Canonicalize drive and dirsep too for MinGW., Jan Nieuwenhuizen, 2021/12/11
- Re: [PATCH] canonicalize-lgpl: Canonicalize drive and dirsep too for MinGW., Gisle Vanem, 2021/12/11
- Re: [PATCH] canonicalize-lgpl: Canonicalize drive and dirsep too for MinGW.,
Bruno Haible <=
- Re: [PATCH] canonicalize-lgpl: Canonicalize drive and dirsep too for MinGW., Jan Nieuwenhuizen, 2021/12/12
- Re: [PATCH] canonicalize-lgpl: Canonicalize drive and dirsep too for MinGW., Bruno Haible, 2021/12/12
- Re: [v2 PATCH] canonicalize-lgpl: Return file name using '/' consistently on MinGW., Jan Nieuwenhuizen, 2021/12/12
- Re: [v2 PATCH] canonicalize-lgpl: Return file name using '/' consistently on MinGW., Bruno Haible, 2021/12/12