[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: 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);
  open_syntax_window (name);

According to gtk docs (
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.


Attachment: convert_filename.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]