aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-05-17 18:33:22 +0300
committerEli Zaretskii2015-05-17 18:33:22 +0300
commita0cfd563d26661ce2a509e525487644fd421966b (patch)
treeb8dbb6751c06109a4a766173b635a72268fcc65d
parent05e69458e7de94b936f128a4e3691e4bd699f475 (diff)
downloademacs-a0cfd563d26661ce2a509e525487644fd421966b.tar.gz
emacs-a0cfd563d26661ce2a509e525487644fd421966b.zip
MS-Windows followup for ASCIIfication of curved quotes
* lisp/term/w32console.el (terminal-init-w32console): Repeat the test for curved quotes being displayable, after switching the terminal encoding. (Bug#20545)
-rw-r--r--lisp/term/w32console.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/term/w32console.el b/lisp/term/w32console.el
index a7056cd5edf..29ab2f16e1c 100644
--- a/lisp/term/w32console.el
+++ b/lisp/term/w32console.el
@@ -65,7 +65,15 @@
65 (when oem-cs-p 65 (when oem-cs-p
66 (set-keyboard-coding-system oem-code-page-coding) 66 (set-keyboard-coding-system oem-code-page-coding)
67 (set-terminal-coding-system 67 (set-terminal-coding-system
68 (if oem-o-cs-p oem-code-page-output-coding oem-code-page-coding)))) 68 (if oem-o-cs-p oem-code-page-output-coding oem-code-page-coding))
69 ;; Since we changed the terminal encoding, we need to repeat
70 ;; the test for Unicode quotes being displayable.
71 (dolist (char-repl
72 '((?‘ . [?\']) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"])))
73 (when (not (char-displayable-p (car char-repl)))
74 (or standard-display-table
75 (setq standard-display-table (make-display-table)))
76 (aset standard-display-table (car char-repl) (cdr char-repl))))))
69 (let* ((colors w32-tty-standard-colors) 77 (let* ((colors w32-tty-standard-colors)
70 (color (car colors))) 78 (color (car colors)))
71 (tty-color-clear) 79 (tty-color-clear)