Re: normalizing filenames and strings

2007-04-11 Thread Federico Mena Quintero
El vie, 06-04-2007 a las 21:37 +0200, Denis Jacquerye escribió: The filechooser doesn't use the existing filename if what is typed is canonically equivalent, even if autocompletion gets it right. I had already opened http://bugzilla.gnome.org/show_bug.cgi?id=421736 and

Re: normalizing filenames and strings

2007-04-06 Thread Denis Jacquerye
On 4/5/07, Federico Mena Quintero [EMAIL PROTECTED] wrote: El jue, 29-03-2007 a las 09:52 +0200, Alexander Larsson escribió: On Wed, 2007-03-28 at 19:52 -0600, Federico Mena Quintero wrote: [Those functions don't normalize currently; maybe they need to... do you have a reproducible

Re: normalizing filenames and strings

2007-04-04 Thread Federico Mena Quintero
El jue, 29-03-2007 a las 09:52 +0200, Alexander Larsson escribió: On Wed, 2007-03-28 at 19:52 -0600, Federico Mena Quintero wrote: [Those functions don't normalize currently; maybe they need to... do you have a reproducible bug?] NO! They should not normalize! Then you can't open a file

Re: normalizing filenames and strings

2007-03-30 Thread Alexander Larsson
On Fri, 2007-03-30 at 13:39 +1000, Andrew Cowie wrote: On Wed, 2007-03-28 at 19:52 -0600, Federico Mena Quintero wrote: g_filename_to_utf8() and g_filename_from_utf8() Just when I thought I was beginning to know something, an old hand like Frederico goes and describes something that is

Re: normalizing filenames and strings

2007-03-29 Thread Alexander Larsson
On Wed, 2007-03-28 at 21:40 +0200, Denis Jacquerye wrote: On 3/28/07, Alexander Larsson [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 19:43 +0200, Denis Jacquerye wrote: On 3/28/07, Alexander Larsson [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 11:50 -0500, Shaun McCance wrote:

Re: normalizing filenames and strings

2007-03-29 Thread Alexander Larsson
On Wed, 2007-03-28 at 19:52 -0600, Federico Mena Quintero wrote: If you have applications that don't work when you have Unicode filenames, it's a telltale sign that they are not using g_filename_to_utf8() and g_filename_from_utf8() correctly:

Re: normalizing filenames and strings

2007-03-29 Thread Xavier Bestel
On Thu, 2007-03-29 at 09:52 +0200, Alexander Larsson wrote: On Wed, 2007-03-28 at 19:52 -0600, Federico Mena Quintero wrote: If you have applications that don't work when you have Unicode filenames, it's a telltale sign that they are not using g_filename_to_utf8() and

Re: normalizing filenames and strings

2007-03-29 Thread Dr. Michael J. Chudobiak
Denis Jacquerye wrote: Most apps don't handle search/compare/sort properly. Actually, this point hasn't really been noticed in the discussion. (Denis has been diligently filing bugs for applications that do not search correctly.) For instance, gthumb used g_pattern_match_simple in some search

Re: normalizing filenames and strings

2007-03-29 Thread Andrew Cowie
On Wed, 2007-03-28 at 19:52 -0600, Federico Mena Quintero wrote: g_filename_to_utf8() and g_filename_from_utf8() Just when I thought I was beginning to know something, an old hand like Frederico goes and describes something that is enormously powerful and _very_ well presented in the docs, that

Re: normalizing filenames and strings

2007-03-28 Thread Alexander Larsson
On Tue, 2007-03-27 at 13:15 -0400, Dr. Michael J. Chudobiak wrote: Filenames could also be NFC normalized when created, although that's not absolutely necessary. It would be nice if gnome mandated a standard approach for normalization. Does everyone like NFC?

Re: normalizing filenames and strings

2007-03-28 Thread Xavier Bestel
On Wed, 2007-03-28 at 16:46 +0200, Alexander Larsson wrote: On Tue, 2007-03-27 at 13:15 -0400, Dr. Michael J. Chudobiak wrote: Filenames could also be NFC normalized when created, although that's not absolutely necessary. It would be nice if gnome mandated a standard approach for

Re: normalizing filenames and strings

2007-03-28 Thread Denis Jacquerye
On 3/28/07, Xavier Bestel [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 16:46 +0200, Alexander Larsson wrote: In practice i don't think there is an enourmous problem. Most files are either selected in the fileselector/filemanager (so we don't care about normalization, just the filename

Re: normalizing filenames and strings

2007-03-28 Thread Shaun McCance
On Wed, 2007-03-28 at 16:55 +0200, Xavier Bestel wrote: On Wed, 2007-03-28 at 16:46 +0200, Alexander Larsson wrote: On Tue, 2007-03-27 at 13:15 -0400, Dr. Michael J. Chudobiak wrote: Filenames could also be NFC normalized when created, although that's not absolutely necessary. It

Re: normalizing filenames and strings

2007-03-28 Thread Alexander Larsson
On Wed, 2007-03-28 at 11:50 -0500, Shaun McCance wrote: On Wed, 2007-03-28 at 16:55 +0200, Xavier Bestel wrote: Most applications that operate on files will accept file name arguments when invoked. What are we supposed to do with these? Bear in mind that the argument isn't only used by shell

Re: normalizing filenames and strings

2007-03-28 Thread Denis Jacquerye
On 3/28/07, Alexander Larsson [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 11:50 -0500, Shaun McCance wrote: On Wed, 2007-03-28 at 16:55 +0200, Xavier Bestel wrote: Most applications that operate on files will accept file name arguments when invoked. What are we supposed to do with

Re: normalizing filenames and strings

2007-03-28 Thread Xavier Bestel
Le mercredi 28 mars 2007 à 11:50 -0500, Shaun McCance a écrit : Most applications that operate on files will accept file name arguments when invoked. What are we supposed to do with these? I don't know, I always use bash completion, which should avoid the need to use canonical-encoding -

Re: normalizing filenames and strings

2007-03-28 Thread Alexander Larsson
On Wed, 2007-03-28 at 19:43 +0200, Denis Jacquerye wrote: On 3/28/07, Alexander Larsson [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 11:50 -0500, Shaun McCance wrote: On Wed, 2007-03-28 at 16:55 +0200, Xavier Bestel wrote: Most applications that operate on files will accept file name

Re: normalizing filenames and strings

2007-03-28 Thread Denis Jacquerye
On 3/28/07, Alexander Larsson [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 19:43 +0200, Denis Jacquerye wrote: On 3/28/07, Alexander Larsson [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 11:50 -0500, Shaun McCance wrote: On Wed, 2007-03-28 at 16:55 +0200, Xavier Bestel wrote: Most

Re: normalizing filenames and strings

2007-03-28 Thread Xavier Bestel
Le mercredi 28 mars 2007 à 21:40 +0200, Denis Jacquerye a écrit : On 3/28/07, Alexander Larsson [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 19:43 +0200, Denis Jacquerye wrote: On 3/28/07, Alexander Larsson [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 11:50 -0500, Shaun McCance

Re: normalizing filenames and strings

2007-03-28 Thread Denis Jacquerye
On 3/28/07, Xavier Bestel [EMAIL PROTECTED] wrote: Le mercredi 28 mars 2007 à 21:40 +0200, Denis Jacquerye a écrit : On 3/28/07, Alexander Larsson [EMAIL PROTECTED] wrote: On Wed, 2007-03-28 at 19:43 +0200, Denis Jacquerye wrote: On 3/28/07, Alexander Larsson [EMAIL PROTECTED] wrote:

Re: normalizing filenames and strings

2007-03-28 Thread Federico Mena Quintero
El mar, 27-03-2007 a las 18:55 +0200, Denis Jacquerye escribió: There's an interesting Unicode bug with all gnome apps at the moment. Canonically equivalent file names are not considered equivalent by applications. If you have applications that don't work when you have Unicode filenames, it's

Re: normalizing filenames and strings

2007-03-27 Thread Dr. Michael J. Chudobiak
Filenames could also be NFC normalized when created, although that's not absolutely necessary. It would be nice if gnome mandated a standard approach for normalization. Does everyone like NFC? (http://unicode.org/reports/tr15 for info.) This could be fixed at a low level, in gtk filechooser