C++ Logo

sg15

Advanced search

Re: [Tooling] [isocpp-modules] Dependency information for module-aware build tools

From: Tom Honermann <tom_at_[hidden]>
Date: Fri, 8 Mar 2019 17:29:00 -0500
On 3/8/19 1:22 PM, Ben Boeckel via Modules wrote:
> On Fri, Mar 08, 2019 at 11:52:30 -0500, Tom Honermann wrote:
>
>> Corentin observed last night that Unicode normalization can interfere
>> with filename round tripping. E.g., if the filename is read as UTF-8,
>> stored in the JSON file, and then the JSON file is normalized (perhaps
>> when read), then filenames may no longer match the on disk name. I
>> think we need to address this somehow, but I don't have any specific
>> suggestions other than "don't do that".
> I suspect the concern here is macOS, but if I do `open("foo")`, but it
> is really called, `FOO`, I get the same file, no? Is it not the case
> with normalization as well?
I don't know.
>
> Also, if a library is giving you something other than what's actually in
> the file (with no way to get the original), I'd suggest finding a
> different JSON reader library… Especially over something like
> normalization.

Yeah, that's what I meant by "don't do that".

Tom.

Received on 2019-03-08 23:29:02