From aa5e9ef4812bd5434cc64cd0dd258259b43334d5 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 4 Mar 2006 21:39:11 +0000 Subject: [PATCH] r4475: When reading the output from 'du' for the Properties box, set the channel's encoding to NULL to avoid errors with non-UTF-8 filenames (Andras Mohari). --- ROX-Filer/src/infobox.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ROX-Filer/src/infobox.c b/ROX-Filer/src/infobox.c index 6441aab4..10d25bb3 100644 --- a/ROX-Filer/src/infobox.c +++ b/ROX-Filer/src/infobox.c @@ -593,6 +593,10 @@ static GtkWidget *make_details(const guchar *path, DirItem *item, NULL)) { du->chan = g_io_channel_unix_new(out); + /* Select binary encoding so we don't get an + * error with non-UTF-8 filenames. + */ + g_io_channel_set_encoding(du->chan, NULL, NULL); du->watch = g_io_add_watch(du->chan, G_IO_IN|G_IO_ERR|G_IO_HUP, (GIOFunc) read_du_output, du); -- 2.11.4.GIT