You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So there seems to have been some change in path.normalize for win32 between Node.js 8.4.0 and 8.5.0 that changed how paths are being normalized. There seems to be a behavior difference with some paths that looked like drive-relative paths. Example:
> path.normalize(".\\C:../..")
'.'
Versions 8.4.0 and below used to do this:
> path.normalize(".\\C:../..")
'C:..\\..'
Is this an expected change?
The text was updated successfully, but these errors were encountered:
dougwilson
changed the title
win32 path.normalize for drive-relative seems wrong
win32 path.normalize change in behavior
Feb 13, 2018
I think we can say that it is expected.
The behavior present in versions <8.5.0 and <6.12.0 is the result of a bug that stayed for a long time without being noticed.
All releases of v4.x and v9.x return '.'.
FWIW, in Python, normpath(".\\C:../..") also returns '.'.
Hi @targos there isn't anything specifically breaking here; there was a change in behavior of an application I have and tracked it down to this, and was not sure why it happened within a minor release, so just wanted to confirm it was intentional. The new behavior is correct vs the old behavior of course.
So there seems to have been some change in
path.normalize
for win32 between Node.js 8.4.0 and 8.5.0 that changed how paths are being normalized. There seems to be a behavior difference with some paths that looked like drive-relative paths. Example:Versions 8.4.0 and below used to do this:
Is this an expected change?
The text was updated successfully, but these errors were encountered: