all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: Adrian Robert <adrian.b.robert@gmail.com>
Cc: Ian Eure <ian@digg.com>, 3221@emacsbugs.donarmstrong.com
Subject: bug#3221: 23.0.93; ns cannot handle nonascii file names
Date: Thu, 23 Jul 2009 20:40:32 +0100	[thread overview]
Message-ID: <xbai8wiffarz.fsf@cam.ac.uk> (raw)
In-Reply-To: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> (Adrian Robert's message of "Thu, 23 Jul 2009 12:47:03 -0400")

On 2009-07-23 17:47 +0100, Adrian Robert wrote:
> http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3221
>
> Hi,
>
>> After some investigation with Ian's help, I have found a workaround by
>> setting the language environment to UTF-8.
>>
>> The bug seems to be that Emacs.app is completely unaware of the
>> language setting of OS X.
>
> I'd like to fix this.
>
> Do you know why it works from terminal? Is there some code in emacs
> that reads the LANG or some other env setting and sets something in
> emacs? Where? What is the command to set the language environment?

I don't know how internally this is done. Maybe Ian can comment on this.

The language was set through  + system preferences + International.
After the setting, run 'env' in Terminal.app and there's a line:

  LANG=en_GB.UTF-8

When starting Emacs from Terminal.app by running:

  /Applications/Emacs.app/Contents/MacOS/Emacs -q

It picks up that setting automatically i.e. if you check variables such
as default-file-name-coding-system, it says UTF-8.

But if you start Emacs from dock, it is something else.

> While the various methods on the net to set up ~/.MacOSX/
> environment.plist might work, there ought to be some Cocoa way to
> detect language setting directly...

It will be nice to have that. The current behaviour gave me a big shock
when I first used Emacs.app.

-- 
Leo's Emacs uptime: 43 days, 5 hours, 49 minutes, 1 second





  reply	other threads:[~2009-07-23 19:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-23 16:47 bug#3221: 23.0.93; ns cannot handle nonascii file names Adrian Robert
2009-07-23 19:40 ` Leo [this message]
2009-07-23 22:52 ` Jason Rumney
2016-01-16 17:06 ` Alan J Third
2016-01-16 18:34   ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2009-05-05 14:36 Leo
2009-05-05 21:02 ` Leo

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=xbai8wiffarz.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=3221@emacsbugs.donarmstrong.com \
    --cc=adrian.b.robert@gmail.com \
    --cc=ian@digg.com \
    /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.