|
From: | Adam Fedor |
Subject: | Re: Patch for unicode support on Win32 in GNUstep base |
Date: | Mon, 23 Aug 2004 21:41:46 -0600 |
Well... The reason for adding the additional 'w' method for
fileSystemRepresentationWithPath: is that fileSystemRepresentationWithPath:
is defined to return const char* in the OpenStep spec. If your path contains
unicode chars you cannot convert them to const char*. You need to convert
them to const unichar* to be later on able to work with it.
Having just one method (fileSystemRepresentationWithPath:)would mean to
change it to return either const unichar* instead of const char* or
NSString. Both would break the OpenStep spec and compatibililty.
So we introduced (yet only internally used in GNUstep base and only for
windows)
wFileSystemRepresentation: to be able to handle paths containing unicode
characters
on windows.
[Prev in Thread] | Current Thread | [Next in Thread] |