Fix problem opening files with non-ascii names on Windows
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 21 May 2010 14:08:46 +0000 (16:08 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 21 May 2010 14:08:46 +0000 (16:08 +0200)
src/ui/gui/psppire-data-window.c

index ec75e086b099bdec25e9a93597aa6152917d5a4d..bcab4dc5a0a266fe8cf11705800f6262bd0347c0 100644 (file)
@@ -459,11 +459,14 @@ open_window (PsppireWindow *de)
        gchar *name =
          gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
 
-       if (any_reader_may_open (name))
+       gchar *sysname = convert_glib_filename_to_system_filename (name, NULL);
+
+       if (any_reader_may_open (sysname))
          psppire_window_load (de, name);
        else
          open_syntax_window (name);
 
+       g_free (sysname);
        g_free (name);
       }
       break;