Add new function file_utils_filename_to_utf8(), which is to be used when

2004-01-14  Tor Lillqvist  <tml@iki.fi>

	* app/file/file-utils.[ch]: Add new function
	file_utils_filename_to_utf8(), which is to be used when converting
	file names (which are kept in the on-disk encoding) to UTF-8 for
	passing to GTK, or to g_print() etc.

	* app/*/*.c: Call file_utils_filename_to_utf8(). Should fix most
	of the warnings generated by non-UTF8 pathnames. See #130118.

	* libgimpbase/gimpenv.b: Document that gimp_directory() etc return
	strings in the on-disk encoding.

	* libgimpmodule/gimpmodule.c: Convert filenames to UTF-8 (using
	g_filename_to_utf8()) before passing to g_print().
This commit is contained in:
Tor Lillqvist
2004-01-14 02:03:37 +00:00
committed by Tor Lillqvist
parent 6c4deef6b0
commit 18485018b3
45 changed files with 534 additions and 274 deletions

View File

@ -55,6 +55,8 @@
#include "core/gimp.h"
#include "file/file-utils.h"
#include "gimperrorconsole.h"
#include "gimphelp-ids.h"
#include "gimpitemfactory.h"
@ -396,7 +398,7 @@ gimp_error_console_save_response (GtkWidget *dialog,
console->save_selection))
{
g_message (_("Error writing file '%s':\n%s"),
filename, g_strerror (errno));
file_utils_filename_to_utf8 (filename), g_strerror (errno));
return;
}
}