diff src/image.c @ 69771:fd6d18b61fa7

Include "charset.h" and "coding.h". (x_find_image_file): Return an encoded file name.
author Kenichi Handa <handa@m17n.org>
date Mon, 03 Apr 2006 01:23:03 +0000
parents 65b669e90ff5
children 609c61a0071d 81f2d90dee68 65ca8fb66a0d
line wrap: on
line diff
--- 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 <epaths.h>
+#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;