diff options
| author | Kenichi Handa | 2006-04-03 01:23:44 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-04-03 01:23:44 +0000 |
| commit | 022af1243cf04c67caf119e0156bf4de577cf126 (patch) | |
| tree | c33262dcc44eeb8aae9e40c77b7bb5e56d2c4d5e /src/image.c | |
| parent | 703890c3ee027f2a4e8406ad645ab9fcfc4a0648 (diff) | |
| download | emacs-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/image.c')
| -rw-r--r-- | src/image.c | 11 |
1 files changed, 8 insertions, 3 deletions
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 | ||
| 2252 | Lisp_Object | 2254 | Lisp_Object |
| 2253 | x_find_image_file (file) | 2255 | x_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; |