From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#3221: 23.0.93; ns cannot handle nonascii file names Date: Fri, 24 Jul 2009 06:52:01 +0800 Message-ID: <4A68E991.5030709@f2s.com> References: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> Reply-To: Jason Rumney , 3221@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248391083 24474 80.91.229.12 (23 Jul 2009 23:18:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jul 2009 23:18:03 +0000 (UTC) Cc: Ian Eure , Leo To: Adrian Robert , 3221@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 24 01:17:56 2009 Return-path: Envelope-to: geb-bug-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 1MU7Xu-00059c-VG for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jul 2009 01:17:55 +0200 Original-Received: from localhost ([127.0.0.1]:44952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU7Xu-0000LN-DZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jul 2009 19:17:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MU7Xg-0000H6-B6 for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 19:17:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MU7XZ-0000Fw-Uv for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 19:17:39 -0400 Original-Received: from [199.232.76.173] (port=38687 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU7XZ-0000Fm-Jz for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 19:17:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56665) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MU7XY-0006Kc-O6 for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 19:17:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NNHUbC017639; Thu, 23 Jul 2009 16:17:30 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6NN04DC013804; Thu, 23 Jul 2009 16:00:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jason Rumney Original-Sender: Jason Rumney Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Thu, 23 Jul 2009 23:00:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3221 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Original-Received: via spool by 3221-submit@emacsbugs.donarmstrong.com id=B3221.124838956712848 (code B ref 3221); Thu, 23 Jul 2009 23:00:04 +0000 Original-Received: (at 3221) by emacsbugs.donarmstrong.com; 23 Jul 2009 22:52:47 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NMqg3Q012837 for <3221@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 15:52:44 -0700 Original-Received: by wa-out-1112.google.com with SMTP id m28so178589wag.1 for <3221@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 15:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=UiltqMiD+P8ASd/8aRAgwoF+MCDJoBFocoUyEaIAj28=; b=LbWf5a6aTEGbHFm69j77MGoI1ONVA7nOd25xWAex+2GJD+Jq/yL1hBB0YPK9lNw0Q6 DlyhGvCTp+TTnygziyAhS5Uz6GcCGlPCXOJzKv3L6jRLjbUUYd821p8EHHGYRML89yXJ 7UTOLO1+6HNAPqLbiKzAIz8lKkXgvM7tyJYaQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=XSqAUHWbejQssR0Dm8Jm2exha8TKCgOrHVpdC1CWqQ70RxINUe+6gUZ069gqiddhHO 4r71OGufT9wUzZgTjdXWAeK7Gi7w0nUHHc9vQ5aeTQKm0dsQkGG1Dmqj+E6J+9ThusM4 NagqGaO56dhgLpawAUGVPQdE+z9K/AFT/nCXc= Original-Received: by 10.114.132.4 with SMTP id f4mr3237147wad.75.1248389562403; Thu, 23 Jul 2009 15:52:42 -0700 (PDT) Original-Received: from ?192.168.249.26? ([124.13.7.225]) by mx.google.com with ESMTPS id m31sm4794696wag.66.2009.07.23.15.52.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Jul 2009 15:52:41 -0700 (PDT) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <4539FC21-8FA9-40F9-ABBD-75541DE82F9B@gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 23 Jul 2009 19:17:38 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29596 Archived-At: Adrian Robert wrote: > 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? Yes, the command that does it is set-locale-environment in international/mule-cmds.el, called from command-line as part of the startup sequence. > > 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... Yes, the way we handle this on Windows is with a function that initializes certain environment variables from the system APIs if they are not explicitly set. See init_environment in w32.c, which is called from main in emacs.c. You probably need to do something similar at least on Mac OSX, I'm not sure about GnuStep etc, as that is probably running on a platform that complies with Emacs's expectations about which environment variables are set.