From: Stefan Monnier Date: Thu, 24 Mar 2005 17:18:46 +0000 (+0000) Subject: If running in Terminal.app set coding-system to utf-8. X-Git-Tag: ttn-vms-21-2-B4~1573 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3ac3dd4f03874fe79bd9826ed31d0054ed9d212e;p=emacs.git If running in Terminal.app set coding-system to utf-8. --- 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 @@ ;;; 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 @@ versions of xterm." ;; 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