aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-03-24 17:18:46 +0000
committerStefan Monnier2005-03-24 17:18:46 +0000
commit3ac3dd4f03874fe79bd9826ed31d0054ed9d212e (patch)
tree2d13480a05236948dcce3cd312a63e19bc406a65
parent0fa1a6b8bbcfb7d4d0c7ee2cda0ca0b1f164324e (diff)
downloademacs-3ac3dd4f03874fe79bd9826ed31d0054ed9d212e.tar.gz
emacs-3ac3dd4f03874fe79bd9826ed31d0054ed9d212e.zip
If running in Terminal.app set coding-system to utf-8.
-rw-r--r--lisp/term/xterm.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index 234280a3c3f..dc84dfe6693 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -1,6 +1,6 @@
1;;; xterm.el --- define function key sequences and standard colors for xterm 1;;; xterm.el --- define function key sequences and standard colors for xterm
2 2
3;; Copyright (C) 1995, 2002, 2004 Free Software Foundation, Inc. 3;; Copyright (C) 1995, 2002, 2004, 2005 Free Software Foundation, Inc.
4 4
5;; Author: FSF 5;; Author: FSF
6;; Keywords: terminals 6;; Keywords: terminals
@@ -246,5 +246,10 @@ versions of xterm."
246;; This recomputes all the default faces given the colors we've just set up. 246;; This recomputes all the default faces given the colors we've just set up.
247(tty-set-up-initial-frame-faces) 247(tty-set-up-initial-frame-faces)
248 248
249;; Mac OS X's Terminal.app sets TERM to "xterm-color" and by default uses
250;; utf-8 regardless of the locale.
251(when (equal (getenv "TERM_PROGRAM") "Apple_Terminal")
252 (set-terminal-coding-system 'utf-8))
253
249;; arch-tag: 12e7ebdd-1e6c-4b25-b0f9-35ace25e855a 254;; arch-tag: 12e7ebdd-1e6c-4b25-b0f9-35ace25e855a
250;;; xterm.el ends here 255;;; xterm.el ends here