@@ -28,11 +28,11 @@ #ifdef HAVE_SYS_STAT_H # include #endif #import "OFFile.h" -#import "OFLocalization.h" +#import "OFLocale.h" #import "OFString.h" #import "OFURL.h" #import "OFInitializationFailedException.h" #import "OFInvalidArgumentException.h" @@ -222,14 +222,14 @@ # if defined(OF_WINDOWS) if ((handle = _wopen([path UTF16String], flags, _S_IREAD | _S_IWRITE)) == -1) # elif defined(OF_HAVE_OFF64_T) if ((handle = open64([path cStringWithEncoding: - [OFLocalization encoding]], flags, 0666)) == -1) + [OFLocale encoding]], flags, 0666)) == -1) # else if ((handle = open([path cStringWithEncoding: - [OFLocalization encoding]], flags, 0666)) == -1) + [OFLocale encoding]], flags, 0666)) == -1) # endif @throw [OFOpenItemFailedException exceptionWithPath: path mode: mode errNo: errno]; @@ -242,11 +242,11 @@ if ((flags = parseMode([mode UTF8String], &handle->append)) == -1) @throw [OFInvalidArgumentException exception]; if ((handle->handle = Open([path cStringWithEncoding: - [OFLocalization encoding]], flags)) == 0) { + [OFLocale encoding]], flags)) == 0) { int errNo; switch (IoErr()) { case ERROR_OBJECT_IN_USE: case ERROR_DISK_NOT_VALIDATED: