From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: set-locale-environement: strange default detection Date: Thu, 19 Jul 2007 11:16:39 +0200 Message-ID: <86ejj4g3d4.fsf@lola.quinscape.zz> References: <85ejj5xv4x.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184836613 2546 80.91.229.12 (19 Jul 2007 09:16:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2007 09:16:53 +0000 (UTC) Cc: Thomas Arendsen Hein , emacs-devel@gnu.org To: Sascha Wilde Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 19 11:16:51 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IBS7s-0006cD-Jj for ged-emacs-devel@m.gmane.org; Thu, 19 Jul 2007 11:16:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBS7r-0007G6-Ou for ged-emacs-devel@m.gmane.org; Thu, 19 Jul 2007 05:16:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBS7n-0007Ck-ST for emacs-devel@gnu.org; Thu, 19 Jul 2007 05:16:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBS7l-00077Z-JD for emacs-devel@gnu.org; Thu, 19 Jul 2007 05:16:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBS7l-00077M-Gc for emacs-devel@gnu.org; Thu, 19 Jul 2007 05:16:41 -0400 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IBS7k-0003dA-W1 for emacs-devel@gnu.org; Thu, 19 Jul 2007 05:16:41 -0400 Original-Received: from quinscape.de (dslnet.212-29-44.ip210.dokom.de [212.29.44.210] (may be forged)) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id LAA12291 for ; Thu, 19 Jul 2007 11:16:38 +0200 X-Delivered-To: Original-Received: (qmail 5001 invoked from network); 19 Jul 2007 09:16:39 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 19 Jul 2007 09:16:39 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id DE34F8F235; Thu, 19 Jul 2007 11:16:39 +0200 (CEST) In-Reply-To: (Sascha Wilde's message of "Thu\, 19 Jul 2007 10\:21\:02 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75114 Archived-At: Sascha Wilde writes: > David Kastrup wrote: > >> LC_CTYPE should definitely determine the preferred encodings. > > I agree. But then language-environment definitely shouldn't be used > to determine the language for documentation/ui/anythinglikethat... > > So, what about the idea I sketched in my patch? The proper fix would be to have something more fine-grained than language-environment inside of Emacs. Until such a time, your fix appeared like the right thing to do at that junction to me. Your patch (I am going my memory here) has the disadvantage that it might look up the empty string as a language explicitly, expecting it to turn up nil. That's sort of ugly. -- David Kastrup