Mercurial > emacs
changeset 60887:6adfa2475ad4
If running in Terminal.app set coding-system to utf-8.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 24 Mar 2005 17:18:46 +0000 |
parents | 2a5ec2822c31 |
children | a74509e6fe96 |
files | lisp/term/xterm.el |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/term/xterm.el Thu Mar 24 14:32:39 2005 +0000 +++ b/lisp/term/xterm.el Thu Mar 24 17:18:46 2005 +0000 @@ -1,6 +1,6 @@ ;;; xterm.el --- define function key sequences and standard colors for xterm -;; Copyright (C) 1995, 2002, 2004 Free Software Foundation, Inc. +;; Copyright (C) 1995, 2002, 2004, 2005 Free Software Foundation, Inc. ;; Author: FSF ;; Keywords: terminals @@ -246,5 +246,10 @@ ;; This recomputes all the default faces given the colors we've just set up. (tty-set-up-initial-frame-faces) +;; Mac OS X's Terminal.app sets TERM to "xterm-color" and by default uses +;; utf-8 regardless of the locale. +(when (equal (getenv "TERM_PROGRAM") "Apple_Terminal") + (set-terminal-coding-system 'utf-8)) + ;; arch-tag: 12e7ebdd-1e6c-4b25-b0f9-35ace25e855a ;;; xterm.el ends here