diff options
| author | Eli Zaretskii | 2011-02-26 23:30:16 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-02-26 23:30:16 +0200 |
| commit | d1f61aaf6f0b6a2cf2bbb7eaf5631f8b580568d4 (patch) | |
| tree | b723aea45bcc891bb93aa485b05aa41f4ad28a7d | |
| parent | 413e6468779d62baa658f2b9939350a876ee198f (diff) | |
| download | emacs-d1f61aaf6f0b6a2cf2bbb7eaf5631f8b580568d4.tar.gz emacs-d1f61aaf6f0b6a2cf2bbb7eaf5631f8b580568d4.zip | |
Fix bug #8122 with decoding keyboard input.
lisp/international/mule-cmds.el (set-default-coding-systems): Use
the -unix variant of encoding in default-keyboard-coding-system.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bd1f4e7b3c9..a11cb793648 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-02-26 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * international/mule-cmds.el (set-default-coding-systems): Use the | ||
| 4 | -unix variant of encoding in default-keyboard-coding-system. | ||
| 5 | (Bug#8122) | ||
| 6 | |||
| 1 | 2011-02-23 Kenichi Handa <handa@m17n.org> | 7 | 2011-02-23 Kenichi Handa <handa@m17n.org> |
| 2 | 8 | ||
| 3 | * mail/rmailmm.el (rmail-mime-process-multipart): Do not signal an | 9 | * mail/rmailmm.el (rmail-mime-process-multipart): Do not signal an |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 0ca4a740586..29b2218ae54 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -368,7 +368,9 @@ This also sets the following values: | |||
| 368 | (coding-system-get coding-system 'ascii-compatible-p))) | 368 | (coding-system-get coding-system 'ascii-compatible-p))) |
| 369 | (setq default-file-name-coding-system coding-system))) | 369 | (setq default-file-name-coding-system coding-system))) |
| 370 | (setq default-terminal-coding-system coding-system) | 370 | (setq default-terminal-coding-system coding-system) |
| 371 | (setq default-keyboard-coding-system coding-system) | 371 | ;; Prevent default-terminal-coding-system from converting ^M to ^J. |
| 372 | (setq default-keyboard-coding-system | ||
| 373 | (coding-system-change-eol-conversion coding-system 'unix)) | ||
| 372 | ;; Preserve eol-type from existing default-process-coding-systems. | 374 | ;; Preserve eol-type from existing default-process-coding-systems. |
| 373 | ;; On non-unix-like systems in particular, these may have been set | 375 | ;; On non-unix-like systems in particular, these may have been set |
| 374 | ;; carefully by the user, or by the startup code, to deal with the | 376 | ;; carefully by the user, or by the startup code, to deal with the |