I debugged this, and basically it's a configuration issue: the filenames returned by the posix readdir() function are being interpreted using +[NSString defaultCStringEncoding] , which is Latin-1 by default unless the GNUSTEP_STRING_ENCODING environment var is set.
before Ink, and see if it fixes the problem - it did for me.
Maybe we should change +[NSString defaultCStringEncoding] to NSUTF8StringEncoding?
On 2012-06-02, at 8:01 PM, Germán A. Arias wrote:
> Well, to investigate the problem of the directories names in panels
> Open/Save, I added in NSBrowser.m:
> NSLog(@"Path: %@", path);
> at line 460. And:
> NSLog(@"SubStrings: %@", [subStrings description]);
> at line 481. Now run Ink and then the Open panel in a directory that
> contains the letter "á". This is the output:
> 2012-06-02 17:47:45.806 Ink Path: /home/german/Imágenes
> 2012-06-02 17:47:45.927 Ink SubStrings: (home, german, "Im\U00C3
> This is not what I would expect for the method
> -componentsSeparatedByString:. (This is the method to make the
> "subStrings" array in line 578.).
> Gnustep-dev mailing list
> Gnustep-dev@gnu.... > https://lists.gnu.org/mailman/listinfo/gnustep-dev