From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Emacs OS X GUI doesn't set locale Date: Tue, 26 Jan 2016 22:50:40 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453848652 692 80.91.229.3 (26 Jan 2016 22:50:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jan 2016 22:50:52 +0000 (UTC) Cc: 22392@debbugs.gnu.org, emacs-devel To: Anders Lindgren Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 26 23:50:51 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aOCRl-0003bS-ER for ged-emacs-devel@m.gmane.org; Tue, 26 Jan 2016 23:50:49 +0100 Original-Received: from localhost ([::1]:47251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOCRk-0006n9-FO for ged-emacs-devel@m.gmane.org; Tue, 26 Jan 2016 17:50:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOCRg-0006n4-Vc for emacs-devel@gnu.org; Tue, 26 Jan 2016 17:50:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOCRg-0007ec-2u for emacs-devel@gnu.org; Tue, 26 Jan 2016 17:50:44 -0500 Original-Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:33830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOCRf-0007e0-Rc for emacs-devel@gnu.org; Tue, 26 Jan 2016 17:50:44 -0500 Original-Received: by mail-wm0-x22e.google.com with SMTP id n5so1962304wmn.1 for ; Tue, 26 Jan 2016 14:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=19KVaVcTXWy/B2MhAnqefnt1IQvsxJUy5QT/o3Z4MO0=; b=gsSeD0GW1L6B7lrKMjlf0Xj/uUYJoyfhMFMXqVG6zO1fxe6hAgm8SI1HNuqMWl3tqJ YqqkLoeIUQ0ZVSofreVIFXLMhj5A5DuHwOtOh+VkpY1uKDraWTFHcn62KIrdmwRGPXXP JP8nk/EKkLVeSukeNFuLTAPWSSjXpWPPlS00wsaEc9r9mVpiXma/TMBLAu2pr4C2G+si ErKljQWkCKkQZgQICbfnV4/LHiDAp680fayS23nCYAL+vubIoKhjsKsXNo/sTxgAqbGI rbG08IFhuQ71/xJAanVL3d07Tsrv1oovVY6UyJ9SiMt3cnYqUk5MVT8tuEs/w2N45VOt YQ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=19KVaVcTXWy/B2MhAnqefnt1IQvsxJUy5QT/o3Z4MO0=; b=Y0/oLRdbhkdoyungEtpgkYcJoVFiRMT5eDoGeyGN/TEu3z1vfVrRINck/wTctJ9ML6 c9FfIiSIHJy3YYjeFG3QrDMzSwlLb8sh4hSuUlUlvafGuHkCQxYZ16azgA258cKKHW+m 7hZ1TqHbCny2xQuwtqp9xDZ0dWJaBw/Hj92iDMeEFXu98Sd+3zwCwlZf9fiQCTOZFPLW IgbXXSNusRVk9ecjScShUVAidHZvu9y6JYYCnI40dTaMC6d9zR+Ol+mWtbMNhnmtYYr6 veXEiXqbgaGqbZvlPt3/dBV6tnav6uK7/P91x+zMVCj7C/GMakQRWSPlEA3qr5SaZUr4 ATUQ== X-Gm-Message-State: AG10YORddtjbVSagoW9gqXa1fammMj5PUSaa/vPPvCsOpPy1Fd/ip/CcQKJ++LeER2rlhg== X-Received: by 10.194.117.134 with SMTP id ke6mr29306712wjb.94.1453848642757; Tue, 26 Jan 2016 14:50:42 -0800 (PST) Original-Received: from galloway.idiocy.org (d.d.f.f.d.4.a.0.9.0.6.7.a.3.d.a.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:ad3a:7609:a4d:ffdd]) by smtp.gmail.com with ESMTPSA id x6sm3380311wje.38.2016.01.26.14.50.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2016 14:50:42 -0800 (PST) In-Reply-To: (Anders Lindgren's message of "Tue, 26 Jan 2016 08:11:13 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198888 Archived-At: Anders Lindgren writes: > Hi, > > This sounds like a good change. Unfortunately, I can't answer the > locale-questions you raised in the mail. However, I have a few small > questions: > > * Why a separate source file? Is there any technical reasons why this > couldn't reside in, say, nsterm.m? No, I just wasn't sure what the deal was with including files like that in emacs.c since there's quite a lot in it. If that's an acceptable way to do it then I'd be happy to do so. > * Can you add a "NSTRACE" line to the function, so that it's clear > when this function is called, when NSTRACE is enabled. I don't know what that means, but I'll look into it. > * Have you considered populating `process-environment' instead of > setting LANG in the Emacs process? Would there be any > advantages/disadvantages with this approach? The problem is that Emacs itself doesn't know what the correct locale is and therefore sets various encodings and things to "nil". As far as I can tell process-environment is only for sub-processes, which doesn't solve this particular problem. -- Alan Third