This function is implemented using the POSIX realpath, which returns errors when the file path mentioned does not exist. Consequently, .normalize() is broken on non-existent files. Additionally, use of realpath means that .normalize() goes beyond the behavior specified in IDL docs and resolves symlinks.
This bug affects MacOS builds as well; according to sayrer, it uses the same approach. OS -> All. Note this bug does NOT affect Windows; requesting blocking1.9 and adding platform keyword for this reason.
(note: I'm most concerned about the inconsistency across platforms; if this is desired behavior, that's fine. I just want all major platforms to do the same thing.)
Created attachment 262071 [details] [diff] [review] wild guess patch for Mac (works) I'm not taking this bug because I can't work on it on Linux, and I'm only about 30% confident that this patch does the right thing. I'm simply posting it for comments.