microsoft / WinObjC

Objective-C for Windows
MIT License
6.24k stars 808 forks source link

-[NSURL path] has '/' delimiter instead of '\' #2894

Open edvv opened 6 years ago

edvv commented 6 years ago

FYI:

If WinObjC code does get refactored then (in addition to the many other issues):

-[NSURL path] and other path methods and methods that rely upon -[NSURL path] returns a path with a '/' delimiter but should return path with the native delimiter ('\').

This only really makes a difference if calling code does path parsing and deals with delimiters in which case there will be a mixed-mode delimiter in a path.

Edit:

Also, functions such as this: _getCreateAppDataLocalDir return a mixed-mode path delimiter. All of the unix-delimiter and mixed-mode delimiters should be refactored to use native delimiter only.