Closed Geenz closed 9 years ago
Hmm, to be honest, I'm not very fond of altering a character-conversion function for handling paths. I'd rather have a proper PathNormalize function that removes redundant slashes, replaces backslashes with forward slashes and removes illegal characters. This is achievable in about 3 lines or so.
I'll deal with that when I get home. In the Directory class I assume?
Sent from my iPhone
On Mar 13, 2015, at 1:29 PM, Diego Ahumada notifications@github.com wrote:
Hmm, to be honest, I'm not very fond of altering a character-conversion function for handling paths. I'd rather have a proper PathNormalize function that removes redundant slashes, replaces backslashes with forward slashes and removes illegal characters. This is achievable in about 3 lines or so.
\ Reply to this email directly or view it on GitHub.
Yep.
This should be fixed by now.
Just before we convert from Shift-JIS to UTF-8, this code will replace all occurrences of '\' with '/' on OS X and Linux. I'm not sure if this should also apply to Windows. This seems to resolve (most) file loading issues on OS X. This does not include the retry code I previously committed.