[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Couple of problems with current SVN
From: |
Eric Wasylishen |
Subject: |
Re: Couple of problems with current SVN |
Date: |
Sat, 2 Jun 2012 22:19:01 -0400 |
P.S.,
It seems that glib interpretes filenames as utf-8 by default, but like GNUstep,
has an environment variable for configuring that.
http://developer.gnome.org/glib/stable/glib-Character-Set-Conversion.html#g-get-filename-charsets
-Eric
On 2012-06-02, at 10:14 PM, Eric Wasylishen wrote:
> Hey German,
> I can reproduce the problem where directories with accented characters show
> up incorrectly in the open/save panels. I created a directory with an
> accented "é" using gnome, and it shows up in the gnustep open panel as "Å©".
>
> 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.
>
> Try running:
> "export GNUSTEP_STRING_ENCODING=NSUTF8StringEncoding"
> before Ink, and see if it fixes the problem - it did for me.
>
> Maybe we should change +[NSString defaultCStringEncoding] to
> NSUTF8StringEncoding?
>
> Cheers,
> Eric
>
>
> 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[18900] Path: /home/german/Imágenes
>> 2012-06-02 17:47:45.927 Ink[18900] SubStrings: (home, german, "Im\U00C3
>> \U00A1genes")
>>
>> 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
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/gnustep-dev
>
- Re: Couple of problems with current SVN, A. Arias, 2012/06/02
- Re: Couple of problems with current SVN, Fred Kiefer, 2012/06/02
- Re: Couple of problems with current SVN, Richard Frith-Macdonald, 2012/06/02
- Re: Couple of problems with current SVN, A. Arias, 2012/06/02
- Re: Couple of problems with current SVN, Richard Frith-Macdonald, 2012/06/02
- Re: Couple of problems with current SVN, A. Arias, 2012/06/02
- Re: Couple of problems with current SVN, Eric Wasylishen, 2012/06/02
- Re: Couple of problems with current SVN,
Eric Wasylishen <=
- Re: Couple of problems with current SVN, A. Arias, 2012/06/03
- Re: Couple of problems with current SVN, Richard Frith-Macdonald, 2012/06/03
Re: Couple of problems with current SVN, David Chisnall, 2012/06/02
Re: Couple of problems with current SVN, Richard Frith-Macdonald, 2012/06/02