@@ -647,10 +647,16 @@ objc_autoreleasePoolPop(pool); return ret; } + ++ (of_string_encoding_t)nativeOSEncoding +{ + /* FIXME */ + return OF_STRING_ENCODING_UTF_8; +} - init { if (object_getClass(self) == [OFString class]) { @try { @@ -806,12 +812,12 @@ struct stat st; @try { OFFile *file; - if (stat([path cStringWithEncoding: OF_STRING_ENCODING_NATIVE], - &st) == -1) + if (stat([path cStringWithEncoding: [OFString + nativeOSEncoding]], &st) == -1) @throw [OFOpenFileFailedException exceptionWithPath: path mode: @"rb"]; if (st.st_size > SIZE_MAX)