Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evince/ChangeLog,v
retrieving revision 1.580
diff -u -u -r1.580 ChangeLog
--- ChangeLog	29 Jul 2005 10:05:34 -0000	1.580
+++ ChangeLog	29 Jul 2005 13:14:40 -0000
@@ -1,3 +1,8 @@
+2005-07-29  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+	* ps/ps-document.c: convert filename to utf8 when there is an error
+	loading document
+	
 2005-07-29  Marco Pesenti Gritti  <mpg@redhat.com>
 
 	* shell/ev-view.c: (ensure_rectangle_is_visible):
Index: ps/ps-document.c
===================================================================
RCS file: /cvs/gnome/evince/ps/ps-document.c,v
retrieving revision 1.52
diff -u -u -r1.52 ps-document.c
--- ps/ps-document.c	27 Jul 2005 19:36:53 -0000	1.52
+++ ps/ps-document.c	29 Jul 2005 13:14:40 -0000
@@ -1072,10 +1072,14 @@
 
 	result = document_load (PS_DOCUMENT (document), filename);
 	if (!result) {
+		gchar *utf8 = NULL;
+
+		utf8 = g_locale_to_utf8 (filename, -1, NULL, NULL, NULL);
 		g_set_error (error, G_FILE_ERROR,
 			     G_FILE_ERROR_FAILED,
 			     "Failed to load document '%s'\n",
-			     uri);
+			     utf8 != NULL ? utf8 : uri);
+		g_free (utf8);
 	}
 
 	g_free (filename);
