[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with non-ascii filenames on a non utf-8 locale
From: |
Michel Boaventura |
Subject: |
Re: Problem with non-ascii filenames on a non utf-8 locale |
Date: |
Fri, 14 May 2010 03:00:00 -0300 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 |
I think I get what is going on here. PSPP doesn't open the .sav file,
but opens an empty syntax window.
On psppire-data-window.c:457-463 there is:
gchar *name = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
if (any_reader_may_open (name))
psppire_window_load (de, name);
else
open_syntax_window (name);
According to gtk docs
(http://library.gnome.org/devel/gtk/stable/GtkFileChooser.html#gtkfilechooser-encodings)
gtk_file_chooser_get_filename doesn't return the filename on utf8.
But it is passed to any_reader_may_open without any conversion.
any_reader_may_open can't identify any
reader to the file, returns false and pspp thinks the file is a syntax file.
The attached patch may fix it. Sadly I can't compile a windows version
now, because of a problem on my VM, so I
can't test it. But at least on UTF8 profiles, nothing seems to be
changed with the patch.
Michel
convert_filename.patch
Description: Text Data
- strange problem with non-ascii chars, Michel Boaventura, 2010/05/05
- Re: strange problem with non-ascii chars, John Darrington, 2010/05/05
- Re: strange problem with non-ascii chars, Michel Boaventura, 2010/05/05
- Re: strange problem with non-ascii chars, Michel Boaventura, 2010/05/05
- Re: strange problem with non-ascii chars, Michel Boaventura, 2010/05/05
- Problem with non-ascii filenames on a non utf-8 locale, Michel Boaventura, 2010/05/07
- Re: Problem with non-ascii filenames on a non utf-8 locale, John Darrington, 2010/05/08
- Re: Problem with non-ascii filenames on a non utf-8 locale, Michel Boaventura, 2010/05/14
- Re: Problem with non-ascii filenames on a non utf-8 locale,
Michel Boaventura <=
- Re: Problem with non-ascii filenames on a non utf-8 locale, John Darrington, 2010/05/15
- Re: Problem with non-ascii filenames on a non utf-8 locale, Michel Boaventura, 2010/05/15
- Re: Problem with non-ascii filenames on a non utf-8 locale, Michel Boaventura, 2010/05/15
- Re: Problem with non-ascii filenames on a non utf-8 locale, John Darrington, 2010/05/15
- Re: Problem with non-ascii filenames on a non utf-8 locale, Michel Boaventura, 2010/05/16
- Re: Problem with non-ascii filenames on a non utf-8 locale, John Darrington, 2010/05/15
- Re: Problem with non-ascii filenames on a non utf-8 locale, Michel Boaventura, 2010/05/15