Commit c2f90c27 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

Actually use the UTF-8 filename, so we actually fix #83386.

Sat Jun 15 23:53:03 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c (gtk_file_selection_set_filename):
        Actually use the UTF-8 filename, so we actually
        fix #83386.

        * tests/testgtk.c: Remember the directory as a
        test of gtk_file_selection_set_filename().
parent 12fa1554
Sat Jun 15 23:53:03 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
Actually use the UTF-8 filename, so we actually
fix #83386.
* tests/testgtk.c: Remember the directory as a
test of gtk_file_selection_set_filename().
Sat Jun 15 23:05:19 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
......
Sat Jun 15 23:53:03 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
Actually use the UTF-8 filename, so we actually
fix #83386.
* tests/testgtk.c: Remember the directory as a
test of gtk_file_selection_set_filename().
Sat Jun 15 23:05:19 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
......
Sat Jun 15 23:53:03 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
Actually use the UTF-8 filename, so we actually
fix #83386.
* tests/testgtk.c: Remember the directory as a
test of gtk_file_selection_set_filename().
Sat Jun 15 23:05:19 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
......
Sat Jun 15 23:53:03 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
Actually use the UTF-8 filename, so we actually
fix #83386.
* tests/testgtk.c: Remember the directory as a
test of gtk_file_selection_set_filename().
Sat Jun 15 23:05:19 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
......
Sat Jun 15 23:53:03 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
Actually use the UTF-8 filename, so we actually
fix #83386.
* tests/testgtk.c: Remember the directory as a
test of gtk_file_selection_set_filename().
Sat Jun 15 23:05:19 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
......
Sat Jun 15 23:53:03 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
Actually use the UTF-8 filename, so we actually
fix #83386.
* tests/testgtk.c: Remember the directory as a
test of gtk_file_selection_set_filename().
Sat Jun 15 23:05:19 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_set_filename):
......
......@@ -1170,17 +1170,17 @@ gtk_file_selection_set_filename (GtkFileSelection *filesel,
filename_utf8 = g_filename_to_utf8 (filename, -1, NULL, NULL, NULL);
g_return_if_fail (filename_utf8 != NULL);
last_slash = strrchr (filename, G_DIR_SEPARATOR);
last_slash = strrchr (filename_utf8, G_DIR_SEPARATOR);
if (!last_slash)
{
buf = g_strdup ("");
name = filename;
name = filename_utf8;
}
else
{
buf = g_strdup (filename);
buf[last_slash - filename + 1] = 0;
buf = g_strdup (filename_utf8);
buf[last_slash - filename_utf8 + 1] = 0;
name = last_slash + 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment