# HG changeset patch # User Stefan Monnier # Date 1111684726 0 # Node ID 6adfa2475ad4799d48ee0bd65c5812935a158f8e # Parent 2a5ec2822c31d30d2ea86471c6a681742053f211 If running in Terminal.app set coding-system to utf-8. diff -r 2a5ec2822c31 -r 6adfa2475ad4 lisp/term/xterm.el --- 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