# HG changeset patch # User Kenichi Handa # Date 1144027383 0 # Node ID fd6d18b61fa7aff57f09de8695220ab5b1aaceac # Parent 8b9279d58ebdd86bd480f50e3722df8985b844f9 Include "charset.h" and "coding.h". (x_find_image_file): Return an encoded file name. diff -r 8b9279d58ebd -r fd6d18b61fa7 src/image.c --- a/src/image.c Mon Apr 03 00:26:06 2006 +0000 +++ b/src/image.c Mon Apr 03 01:23:03 2006 +0000 @@ -39,6 +39,8 @@ #include "blockinput.h" #include "systime.h" #include +#include "charset.h" +#include "coding.h" #ifdef HAVE_X_WINDOWS @@ -2246,8 +2248,8 @@ /* Find image file FILE. Look in data-directory, then - x-bitmap-file-path. Value is the full name of the file found, or - nil if not found. */ + x-bitmap-file-path. Value is the encoded full name of the file + found, or nil if not found. */ Lisp_Object x_find_image_file (file) @@ -2267,7 +2269,10 @@ if (fd == -1) file_found = Qnil; else - close (fd); + { + file_found = ENCODE_FILE (file_found); + close (fd); + } UNGCPRO; return file_found;