Use the "system codepage" version of the directory name (not the UTF-8
2000-08-10 Tor Lillqvist <tml@iki.fi> * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage" version of the directory name (not the UTF-8 one) when building the path name to stat().
This commit is contained in:

committed by
Tor Lillqvist

parent
a6895b64fd
commit
3e4c24c96e
@ -1,3 +1,9 @@
|
|||||||
|
2000-08-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
|
||||||
|
version of the directory name (not the UTF-8 one) when building
|
||||||
|
the path name to stat().
|
||||||
|
|
||||||
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2000-08-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
|
||||||
|
version of the directory name (not the UTF-8 one) when building
|
||||||
|
the path name to stat().
|
||||||
|
|
||||||
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2000-08-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
|
||||||
|
version of the directory name (not the UTF-8 one) when building
|
||||||
|
the path name to stat().
|
||||||
|
|
||||||
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2000-08-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
|
||||||
|
version of the directory name (not the UTF-8 one) when building
|
||||||
|
the path name to stat().
|
||||||
|
|
||||||
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2000-08-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
|
||||||
|
version of the directory name (not the UTF-8 one) when building
|
||||||
|
the path name to stat().
|
||||||
|
|
||||||
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2000-08-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
|
||||||
|
version of the directory name (not the UTF-8 one) when building
|
||||||
|
the path name to stat().
|
||||||
|
|
||||||
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2000-08-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
|
||||||
|
version of the directory name (not the UTF-8 one) when building
|
||||||
|
the path name to stat().
|
||||||
|
|
||||||
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
2000-08-03 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
* gdk/gdkpango.c (gdk_draw_layout_line): Don't runs with a PANGO_ATTR_SHAPE set.
|
||||||
|
@ -2148,11 +2148,11 @@ open_new_dir(gchar* dir_name, struct stat* sbuf, gboolean stat_subdirs)
|
|||||||
|
|
||||||
xdir = g_filename_from_utf8 (dir_name);
|
xdir = g_filename_from_utf8 (dir_name);
|
||||||
directory = opendir(xdir);
|
directory = opendir(xdir);
|
||||||
g_free (xdir);
|
|
||||||
|
|
||||||
if(!directory)
|
if(!directory)
|
||||||
{
|
{
|
||||||
cmpl_errno = errno;
|
cmpl_errno = errno;
|
||||||
|
g_free (xdir);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2174,12 +2174,13 @@ open_new_dir(gchar* dir_name, struct stat* sbuf, gboolean stat_subdirs)
|
|||||||
{
|
{
|
||||||
cmpl_errno = errno;
|
cmpl_errno = errno;
|
||||||
closedir(directory);
|
closedir(directory);
|
||||||
|
g_free (xdir);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
sent->entries[i].entry_name = g_filename_to_utf8 (dirent_ptr->d_name);
|
sent->entries[i].entry_name = g_filename_to_utf8 (dirent_ptr->d_name);
|
||||||
|
|
||||||
g_string_assign (path, dir_name);
|
g_string_assign (path, xdir);
|
||||||
if (path->str[path->len-1] != G_DIR_SEPARATOR)
|
if (path->str[path->len-1] != G_DIR_SEPARATOR)
|
||||||
{
|
{
|
||||||
g_string_append_c (path, G_DIR_SEPARATOR);
|
g_string_append_c (path, G_DIR_SEPARATOR);
|
||||||
@ -2199,6 +2200,7 @@ open_new_dir(gchar* dir_name, struct stat* sbuf, gboolean stat_subdirs)
|
|||||||
sent->entries[i].is_dir = 1;
|
sent->entries[i].is_dir = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free (xdir);
|
||||||
g_string_free (path, TRUE);
|
g_string_free (path, TRUE);
|
||||||
qsort(sent->entries, sent->entry_count, sizeof(CompletionDirEntry), compare_cmpl_dir);
|
qsort(sent->entries, sent->entry_count, sizeof(CompletionDirEntry), compare_cmpl_dir);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user