Index: src/OFFileURLHandler.m ================================================================== --- src/OFFileURLHandler.m +++ src/OFFileURLHandler.m @@ -634,12 +634,20 @@ } else { struct _utimbuf times = { (time_t)timeInterval, (time_t)timeInterval }; + int status; - if (_wutime([path UTF16String], ×) != 0) { + if ([OFSystemInfo isWindowsNT]) + status = _wutime([path UTF16String], ×); + else + status = _utime( + [path cStringWithEncoding: [OFLocale encoding]], + ×); + + if (status != 0) { of_file_attribute_key_t failedAttribute = of_file_attribute_key_modification_date; @throw [OFSetItemAttributesFailedException exceptionWithURL: URL