all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B. Smith-Mannschott" <benpsm@gmail.com>
To: Florian Lindner <Florian.Lindner@xgm.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Mac OS and Unicode
Date: Sat, 9 Feb 2008 10:28:07 +0100	[thread overview]
Message-ID: <097AF820-D88E-4321-AABA-7C61CE7E67FF@gmail.com> (raw)
In-Reply-To: <nemoFri020808065419@news.lrz-muenchen.de>




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




  parent reply	other threads:[~2008-02-09  9:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-08 17:59 Mac OS and Unicode Florian Lindner
2008-02-08 21:31 ` Harald Hanche-Olsen
2008-02-08 22:34   ` Florian Lindner
2008-02-08 22:54     ` Harald Hanche-Olsen
2008-02-09 13:06       ` Florian Lindner
2008-02-09 17:56         ` Harald Hanche-Olsen
2008-02-09 20:29           ` Peter Dyballa
     [not found]           ` <mailman.7231.1202588996.18990.help-gnu-emacs@gnu.org>
2008-02-09 21:09             ` Harald Hanche-Olsen
2008-02-10  9:29               ` Peter Dyballa
2008-02-09  4:22 ` Stefan Monnier
2008-02-09  9:28 ` B. Smith-Mannschott [this message]
2008-02-09  9:59 ` Peter Dyballa
     [not found] ` <mailman.7203.1202551148.18990.help-gnu-emacs@gnu.org>
2008-02-09 13:25   ` Florian Lindner
2008-02-09 14:58     ` Peter Dyballa
2008-02-10 18:21     ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=097AF820-D88E-4321-AABA-7C61CE7E67FF@gmail.com \
    --to=benpsm@gmail.com \
    --cc=Florian.Lindner@xgm.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.