Opened 7 years ago

Closed 5 years ago

#7604 closed bug (fixed)

System.Directory.canonicalizePath "" behaviour differs between platforms

Reported by: igloo Owned by: ekmett
Priority: normal Milestone: 7.10.1
Component: Core Libraries Version: 7.6.1
Keywords: Cc: core-libraries-committee@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case: T4113
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by igloo)

On Linux, System.Directory.canonicalizePath "" gives an exception. On i386 OS X, it returns the current directory.

In a System.Directory function, we should consistently do one or the other.

Change History (7)

comment:1 Changed 7 years ago by igloo

Description: modified (diff)

comment:2 Changed 7 years ago by igloo

Milestone: 7.8.1

comment:3 Changed 6 years ago by thoughtpolice


Moving to 7.10.1

comment:4 Changed 5 years ago by thoughtpolice

Component: libraries/directoryCore Libraries
Owner: set to ekmett

Moving over to new owning component 'Core Libraries'.

comment:5 Changed 5 years ago by thoughtpolice


Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:6 Changed 5 years ago by ekmett

Cc: core-libraries-committee@… added

comment:7 Changed 5 years ago by argiopeweb

Resolution: fixed
Status: newclosed

Calling canonicalizePath on an empty string now explicitly returns the result of calling canonicalizePath on the current directory (".") as in OS X.

Note: See TracTickets for help on using tickets.