diff options
| author | Paul Eggert | 2014-07-14 12:23:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-07-14 12:23:18 -0700 |
| commit | ba1ed52f0c2c7fd15fe1feadabfd0af88e19b4c3 (patch) | |
| tree | 5ef95ac07de2a856369957a7ac047b9f58b78594 /src/ChangeLog | |
| parent | 091adafaac52ff409790728af63cab19bd52fc8f (diff) | |
| download | emacs-ba1ed52f0c2c7fd15fe1feadabfd0af88e19b4c3.tar.gz emacs-ba1ed52f0c2c7fd15fe1feadabfd0af88e19b4c3.zip | |
Use binary-io module, O_BINARY, and "b" flag.
* admin/merge-gnulib (GNULIB_MODULES): Add binary-io. It was already
present implicitly; this just makes the dependence explicit.
* lib-src/etags.c, lib-src/hexl.c, lib-src/make-docfile.c:
Include binary-io.h instead of fcntl.h and/or io.h.
(main): Use set_binary_mode or SET_BINARY
in place of handcrafted code.
* lib-src/etags.c (main) [DOS_NT]:
* lib-src/movemail.c (main) [WINDOWSNT]:
Don't mess with _fmode.
* lib-src/etags.c (main, process_file_name, analyse_regex):
Use fopen/popen's "b" flag instead.
* lib-src/movemail.c (main, popmail): Use open/lk_open/mkostemp's O_BINARY
instead.
* src/callproc.c (create_temp_file): Use mkostemp's O_BINARY flag.
* src/emacs.c [MSDOS]:
* src/emacs.c (main) [DOS_NT]: Don't mess with _fmode.
(main) [MSDOS]: Use SET_BINARY instead of setmode.
* src/minibuf.c: Include binary-io.h instead of fcntl.h.
(read_minibuf_noninteractive):
Use set_binary_mode instead of handcrafted code.
Don't call emacs_set_tty if emacs_get_tty failed.
* src/sysdep.c, src/systty.h (emacs_get_tty): Return int, not void.
* src/sysdep.c (emacs_open, emacs_pipe): Use O_BINARY.
* src/w32.c (pipe2): Adjust eassert to include O_BINARY.
Fixes: debbugs:18006
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 53795742131..ee600602895 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,18 @@ | |||
| 1 | 2014-07-14 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2014-07-14 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Use binary-io module, O_BINARY, and "b" flag (Bug#18006). | ||
| 4 | * callproc.c (create_temp_file): Use mkostemp's O_BINARY flag. | ||
| 5 | * emacs.c [MSDOS]: | ||
| 6 | * emacs.c (main) [DOS_NT]: Don't mess with _fmode. | ||
| 7 | (main) [MSDOS]: Use SET_BINARY instead of setmode. | ||
| 8 | * minibuf.c: Include binary-io.h instead of fcntl.h. | ||
| 9 | (read_minibuf_noninteractive): | ||
| 10 | Use set_binary_mode instead of handcrafted code. | ||
| 11 | Don't call emacs_set_tty if emacs_get_tty failed. | ||
| 12 | * sysdep.c, systty.h (emacs_get_tty): Return int, not void. | ||
| 13 | * sysdep.c (emacs_open, emacs_pipe): Use O_BINARY. | ||
| 14 | * w32.c (pipe2): Adjust eassert to include O_BINARY. | ||
| 15 | |||
| 3 | * macros.c (Fstart_kbd_macro): Avoid need for overflow check. | 16 | * macros.c (Fstart_kbd_macro): Avoid need for overflow check. |
| 4 | This works around a GCC compiler bug when Emacs is configured with | 17 | This works around a GCC compiler bug when Emacs is configured with |
| 5 | --enable-gcc-warnings. | 18 | --enable-gcc-warnings. |