diff options
| author | Eli Zaretskii | 2015-01-15 17:50:50 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-01-15 17:50:50 +0200 |
| commit | 0f238ea450b3a976f04c95c4cf8befaadad1cdd0 (patch) | |
| tree | cd278a1441bd610bd91eb7fbd6f38aea7aa4bca8 /admin | |
| parent | 3b7eed4ebb3c18799ec791d0c6bd53c019f48f73 (diff) | |
| download | emacs-0f238ea450b3a976f04c95c4cf8befaadad1cdd0.tar.gz emacs-0f238ea450b3a976f04c95c4cf8befaadad1cdd0.zip | |
Add set-binary-mode primitive to switch a standard stream to binary I/O.
src/fileio.c: Include binary-io.h.
(Fset_binary_mode): New function.
(syms_of_fileio): Defsubr it.
(syms_of_fileio) <Qstdin, Qstdout, Qstderr>: DEFSYM them.
admin/unidata/unidata/uvs.el (uvs-print-table-ivd): Call set-binary-mode on
stdout.
doc/lispref/streams.texi (Input Functions): Document 'set-binary-mode'.
(Output Functions): Cross-reference to documentation of
'set-binary-mode'.
etc/NEWS: Mention 'set-binary-mode'.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/ChangeLog | 5 | ||||
| -rw-r--r-- | admin/unidata/uvs.el | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index 2b04281f400..70d1714f8eb 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-01-15 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * unidata/uvs.el (uvs-print-table-ivd): Call set-binary-mode on | ||
| 4 | stdout. | ||
| 5 | |||
| 1 | 2015-01-12 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2015-01-12 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Say "ELC foo.elc" instead of "GEN foo.elc" | 8 | Say "ELC foo.elc" instead of "GEN foo.elc" |
diff --git a/admin/unidata/uvs.el b/admin/unidata/uvs.el index 8bad523ce35..a6beac97db4 100644 --- a/admin/unidata/uvs.el +++ b/admin/unidata/uvs.el | |||
| @@ -200,6 +200,7 @@ corresponding number." | |||
| 200 | (insert-file-contents filename) | 200 | (insert-file-contents filename) |
| 201 | (uvs-alist-from-ivd collection-id | 201 | (uvs-alist-from-ivd collection-id |
| 202 | sequence-id-to-glyph-func)))) | 202 | sequence-id-to-glyph-func)))) |
| 203 | (set-binary-mode 'stdout t) | ||
| 203 | (princ "/* Automatically generated by uvs.el. */\n") | 204 | (princ "/* Automatically generated by uvs.el. */\n") |
| 204 | (princ | 205 | (princ |
| 205 | (format "static const unsigned char mac_uvs_table_%s_bytes[] =\n {\n" | 206 | (format "static const unsigned char mac_uvs_table_%s_bytes[] =\n {\n" |