mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix NSTemporaryDirectory() returning path with backslashes on Windows
This commit is contained in:
parent
542d870302
commit
1aab02b622
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2022-01-15 Frederik Seiffert <frederik@algoriddim.com>
|
||||
|
||||
* Source/NSPathUtilities.m:
|
||||
Fix NSTemporaryDirectory() returning path with backslashes on
|
||||
Windows.
|
||||
|
||||
2022-01-13 Frederik Seiffert <frederik@algoriddim.com>
|
||||
|
||||
* Source/NSTimeZone.m:
|
||||
|
|
|
@ -1962,6 +1962,9 @@ NSTemporaryDirectory(void)
|
|||
{
|
||||
baseTempDirName = [NSString stringWithCharacters: buffer
|
||||
length: wcslen(buffer)];
|
||||
// convert path to use forward slashes, which we use internally
|
||||
baseTempDirName = [baseTempDirName stringByReplacingString: @"\\"
|
||||
withString: @"/"];
|
||||
}
|
||||
#elif defined(__ANDROID__)
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue