diff options
| author | Eli Zaretskii | 2009-01-10 10:43:11 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2009-01-10 10:43:11 +0000 |
| commit | 8b5e8b42f7407a8c32bbfe6b2c503d6455de6389 (patch) | |
| tree | 7135987b50262c661f3a6888e9930353c93b888d | |
| parent | 97b1b294afa4dad3ddd68927e5f0ef8db0784fb6 (diff) | |
| download | emacs-8b5e8b42f7407a8c32bbfe6b2c503d6455de6389.tar.gz emacs-8b5e8b42f7407a8c32bbfe6b2c503d6455de6389.zip | |
Fix Bug #876:
(info-insert-file-contents, Info-insert-dir): Bind inhibit-null-byte-detection
to non-nil.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/info.el | 9 |
2 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 91bd9efe560..3c02c10709a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-01-10 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | Fix Bug #876: | ||
| 4 | |||
| 5 | * info.el (info-insert-file-contents, Info-insert-dir): Bind | ||
| 6 | inhibit-null-byte-detection to non-nil. | ||
| 7 | |||
| 1 | 2009-01-10 Martin Rudalics <rudalics@gmx.at> | 8 | 2009-01-10 Martin Rudalics <rudalics@gmx.at> |
| 2 | 9 | ||
| 3 | * tool-bar.el (tool-bar-mode): Modify all frame parameters when | 10 | * tool-bar.el (tool-bar-mode): Modify all frame parameters when |
diff --git a/lisp/info.el b/lisp/info.el index 96c7b9d972f..9ee468f311d 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -461,13 +461,15 @@ Do the right thing if the file has been compressed or zipped." | |||
| 461 | (insert-file-contents-literally fullname visit) | 461 | (insert-file-contents-literally fullname visit) |
| 462 | (let ((inhibit-read-only t) | 462 | (let ((inhibit-read-only t) |
| 463 | (coding-system-for-write 'no-conversion) | 463 | (coding-system-for-write 'no-conversion) |
| 464 | (inhibit-null-byte-detection t) ; Index nodes include null bytes | ||
| 464 | (default-directory (or (file-name-directory fullname) | 465 | (default-directory (or (file-name-directory fullname) |
| 465 | default-directory))) | 466 | default-directory))) |
| 466 | (or (consp decoder) | 467 | (or (consp decoder) |
| 467 | (setq decoder (list decoder))) | 468 | (setq decoder (list decoder))) |
| 468 | (apply 'call-process-region (point-min) (point-max) | 469 | (apply 'call-process-region (point-min) (point-max) |
| 469 | (car decoder) t t nil (cdr decoder)))) | 470 | (car decoder) t t nil (cdr decoder)))) |
| 470 | (insert-file-contents fullname visit)))) | 471 | (let ((inhibit-null-byte-detection t)) ; Index nodes include null bytes |
| 472 | (insert-file-contents fullname visit))))) | ||
| 471 | 473 | ||
| 472 | (defun Info-file-supports-index-cookies (&optional file) | 474 | (defun Info-file-supports-index-cookies (&optional file) |
| 473 | "Return non-nil value if FILE supports Info index cookies. | 475 | "Return non-nil value if FILE supports Info index cookies. |
| @@ -1094,7 +1096,10 @@ a case-insensitive match is tried." | |||
| 1094 | (or buffers | 1096 | (or buffers |
| 1095 | (message "Composing main Info directory...")) | 1097 | (message "Composing main Info directory...")) |
| 1096 | (condition-case nil | 1098 | (condition-case nil |
| 1097 | (progn | 1099 | ;; Index nodes include null bytes. DIR |
| 1100 | ;; files should not have indices, but who | ||
| 1101 | ;; knows... | ||
| 1102 | (let ((inhibit-null-byte-detection t)) | ||
| 1098 | (insert-file-contents file) | 1103 | (insert-file-contents file) |
| 1099 | (set (make-local-variable 'Info-dir-file-name) | 1104 | (set (make-local-variable 'Info-dir-file-name) |
| 1100 | file) | 1105 | file) |