Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c45bb3b2
Commit
c45bb3b2
authored
Mar 16, 2003
by
Jason Rumney
Browse files
(jpeg_load, png_load, slurp_file): Read image files
as binary.
parent
344630d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
src/ChangeLog
src/ChangeLog
+10
-0
src/w32fns.c
src/w32fns.c
+3
-3
No files found.
src/ChangeLog
View file @
c45bb3b2
2003-03-16 Jason Rumney <jasonr@gnu.org>
* w32gui.h: Use HDC for Display.
* w32term.c (w32_encode_char): Prevent double-byte chars from
crashing Emacs.
* w32fns.c (jpeg_load, png_load, slurp_file): Read image files
as binary.
2003-03-16 Juanma Barranquero <lektu@terra.es>
* xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
...
...
src/w32fns.c
View file @
c45bb3b2
...
...
@@ -9535,7 +9535,7 @@ slurp_file (file, size)
struct stat st;
if (stat (file, &st) == 0
&& (fp = fopen (file, "r")) != NULL
&& (fp = fopen (file, "r
b
")) != NULL
&& (buf = (char *) xmalloc (st.st_size),
fread (buf, 1, st.st_size, fp) == st.st_size))
{
...
...
@@ -11402,7 +11402,7 @@ pbm_read_file (file, size)
struct stat st;
if (stat (SDATA (file), &st) == 0
&& (fp = fopen (SDATA (file), "r")) != NULL
&& (fp = fopen (SDATA (file), "r
b
")) != NULL
&& (buf = (char *) xmalloc (st.st_size),
fread (buf, 1, st.st_size, fp) == st.st_size))
{
...
...
@@ -12495,7 +12495,7 @@ jpeg_load (f, img)
return 0;
}
fp = fopen (SDATA (file), "r");
fp = fopen (SDATA (file), "r
b
");
if (fp == NULL)
{
image_error ("Cannot open `%s'", file, Qnil);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment