aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2006-04-03 01:23:44 +0000
committerKenichi Handa2006-04-03 01:23:44 +0000
commit022af1243cf04c67caf119e0156bf4de577cf126 (patch)
treec33262dcc44eeb8aae9e40c77b7bb5e56d2c4d5e /src
parent703890c3ee027f2a4e8406ad645ab9fcfc4a0648 (diff)
downloademacs-022af1243cf04c67caf119e0156bf4de577cf126.tar.gz
emacs-022af1243cf04c67caf119e0156bf4de577cf126.zip
Include "charset.h" and "coding.h".
(x_find_image_file): Return an encoded file name.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/image.c11
2 files changed, 13 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3f2bae55408..fcb678d0707 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12006-04-03 Kenichi Handa <handa@m17n.org>
2
3 * image.c: Include "charset.h" and "coding.h".
4 (x_find_image_file): Return an encoded file name.
5
12006-04-01 Eli Zaretskii <eliz@gnu.org> 62006-04-01 Eli Zaretskii <eliz@gnu.org>
2 7
3 * configure: Regenerated. 8 * configure: Regenerated.
diff --git a/src/image.c b/src/image.c
index d8a1bc8028b..6f2e93a591a 100644
--- a/src/image.c
+++ b/src/image.c
@@ -39,6 +39,8 @@ Boston, MA 02110-1301, USA. */
39#include "blockinput.h" 39#include "blockinput.h"
40#include "systime.h" 40#include "systime.h"
41#include <epaths.h> 41#include <epaths.h>
42#include "charset.h"
43#include "coding.h"
42 44
43 45
44#ifdef HAVE_X_WINDOWS 46#ifdef HAVE_X_WINDOWS
@@ -2246,8 +2248,8 @@ static unsigned char *slurp_file P_ ((char *, int *));
2246 2248
2247 2249
2248/* Find image file FILE. Look in data-directory, then 2250/* Find image file FILE. Look in data-directory, then
2249 x-bitmap-file-path. Value is the full name of the file found, or 2251 x-bitmap-file-path. Value is the encoded full name of the file
2250 nil if not found. */ 2252 found, or nil if not found. */
2251 2253
2252Lisp_Object 2254Lisp_Object
2253x_find_image_file (file) 2255x_find_image_file (file)
@@ -2267,7 +2269,10 @@ x_find_image_file (file)
2267 if (fd == -1) 2269 if (fd == -1)
2268 file_found = Qnil; 2270 file_found = Qnil;
2269 else 2271 else
2270 close (fd); 2272 {
2273 file_found = ENCODE_FILE (file_found);
2274 close (fd);
2275 }
2271 2276
2272 UNGCPRO; 2277 UNGCPRO;
2273 return file_found; 2278 return file_found;