Index: src/OFFileManager.m ================================================================== --- src/OFFileManager.m +++ src/OFFileManager.m @@ -163,10 +163,20 @@ char buffer[PATH_MAX]; if ((getcwd(buffer, PATH_MAX)) == NULL) @throw [OFGetCurrentDirectoryPathFailedException exceptionWithErrNo: errno]; + +# ifdef OF_DJGPP + /* + * For some reason, getcwd() returns forward slashes on DJGPP, even + * though the native format is to use backwards slashes. + */ + for (char *tmp = buffer; *tmp != '\0'; tmp++) + if (*tmp == '/') + *tmp = '\\'; +# endif return [OFString stringWithCString: buffer encoding: [OFLocalization encoding]]; #endif }