From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. Smith-Mannschott" Newsgroups: gmane.emacs.help Subject: Re: Mac OS and Unicode Date: Sat, 9 Feb 2008 10:28:07 +0100 Message-ID: <097AF820-D88E-4321-AABA-7C61CE7E67FF@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202549336 31001 80.91.229.12 (9 Feb 2008 09:28:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Feb 2008 09:28:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Florian Lindner Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 09 10:29:18 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JNm1N-00053m-6b for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Feb 2008 10:29:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNm0u-0001iG-9Q for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Feb 2008 04:28:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JNm0W-0001i5-6R for help-gnu-emacs@gnu.org; Sat, 09 Feb 2008 04:28:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JNm0V-0001ho-0z for help-gnu-emacs@gnu.org; Sat, 09 Feb 2008 04:28:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNm0U-0001hk-RI for help-gnu-emacs@gnu.org; Sat, 09 Feb 2008 04:28:22 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.153]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JNm0U-0001xB-KD for help-gnu-emacs@gnu.org; Sat, 09 Feb 2008 04:28:22 -0500 Original-Received: by fg-out-1718.google.com with SMTP id d23so3453924fga.30 for ; Sat, 09 Feb 2008 01:28:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=lOyN2I0Kxr1hKjGL8qXYzs6CBDlLfsIgz522e9r5IqE=; b=IU90D5rS1OCyCXdsIzCMWkuDK/ub3YpMuv/yJBJDwxB+QIswSHzGO6f4Qumq27pCPK1+wdIjJNmt3Il0id59iDibH/Pz7JcsH9duSCEbsnKRr6qaExqfEwLjwGFLvtUqMBDyQJ7pmt+wLSrS4wNYbjAjeDhh66fJeWLEltjRPC4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=veSyd+1S1D7Qpbl0WjRrKJYOuiHbZBKayrxhhAvrXKU4xNF1rL+9Q4tkzdfysVHdw8K//op9qS3roMbXaZ3eHEuTp9xZJZkGg9+uI+u88SM41vE7o0nUPduaoHLgYMXKSj7H1LieqXK6A9tklmIS+URrMAYXbZQzaqfkh+woJ4g= Original-Received: by 10.86.58.3 with SMTP id g3mr12702517fga.38.1202549301417; Sat, 09 Feb 2008 01:28:21 -0800 (PST) Original-Received: from ?192.168.2.2? ( [91.113.89.66]) by mx.google.com with ESMTPS id l12sm26235584fgb.8.2008.02.09.01.28.18 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Feb 2008 01:28:19 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.915) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51363 Archived-At: On Feb 8, 2008, at 18:59, Florian Lindner wrote: > Hello, > I'm running GNU Emacs 22.1.1 (i386-apple-darwin9, Carbon Version > 1.6.0) von Mac OS X 10.5.1 compiled with Fink. My locale ist > de_DE.UTF-8. Apparently emacs does not use Unicode when saving files. > I have > > (set-terminal-coding-system 'utf-8) > (set-keyboard-coding-system 'utf-8) > (prefer-coding-system 'utf-8) > > in my .emacs. I'm doing this in my .emacs and it seems to be working both for 22.1.1 (terminal) and 22.1.50.1 (Emacs.app). I can't say how much of it is necessary and what might be cargo-cult from previous emacs versions... (setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING)) (prefer-coding-system 'utf-8) (when (or (> 21 emacs-major-version) (and (= 21 emacs-major-version) (>= 50 emacs-minor-version))) (custom-set-variables '(current-language-environment "UTF-8"))) Note, however, that my LANG is set differently than yours: [bsmith@Meheadable:~/.emacs.config] $ echo $LANG en_US.utf-8 When I initially installed Mac OS X 10.5, I noted that the man program doesn't work when the language is set to German. I don't know if this has since been resolved, nor do I know if it's limited to just man or perhaps part of a larger problem in OS X. You might investigate this possibility if the code above doesn't help. Try switching to US English and logging out and back in again and see if it works then. // ben