From: John Darrington Date: Fri, 21 May 2010 14:08:46 +0000 (+0200) Subject: Fix problem opening files with non-ascii names on Windows X-Git-Tag: v0.7.5~3 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da48ffeebccf0521c14f80edad9fed5fd4e6d08b;p=pspp-builds.git Fix problem opening files with non-ascii names on Windows --- diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index ec75e086..bcab4dc5 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -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;