GNU bug report logs - #9655
24.0.50; `set-locale-environment' should use completion

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: "Drew Adams" <drew.adams@HIDDEN>; dated Sun, 2 Oct 2011 19:47:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'minor' Request was from Stefan Monnier <monnier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 9655 <at> debbugs.gnu.org:


Received: (at 9655) by debbugs.gnu.org; 3 Oct 2011 13:36:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 03 09:36:34 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RAih7-0008UX-Nk
	for submit <at> debbugs.gnu.org; Mon, 03 Oct 2011 09:36:34 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]
	helo=ironport2-out.pppoe.ca)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>)
	id 1RAih5-0008UM-Kr; Mon, 03 Oct 2011 09:36:32 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EABS5iU5FpZLc/2dsb2JhbABBp3+BBoFTAQEEAVYjBQsLNBIUGA0kiA63fIchBKB3hEM
X-IronPort-AV: E=Sophos;i="4.68,479,1312171200"; d="scan'208";a="139742712"
Received: from 69-165-146-220.dsl.teksavvy.com (HELO pastel.home)
	([69.165.146.220])
	by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA;
	03 Oct 2011 09:35:07 -0400
Received: by pastel.home (Postfix, from userid 20848)
	id 8186B5907F; Mon,  3 Oct 2011 09:35:07 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: "Drew Adams" <drew.adams@HIDDEN>
Subject: Re: bug#9655: 24.0.50; `set-locale-environment' should use completion
Message-ID: <jwv7h4mp5cu.fsf-monnier+emacs@HIDDEN>
References: <4C96B18257394010B38C38DDD093AA0F@HIDDEN>
Date: Mon, 03 Oct 2011 09:35:07 -0400
In-Reply-To: <4C96B18257394010B38C38DDD093AA0F@HIDDEN> (Drew Adams's
	message of "Sun, 2 Oct 2011 12:45:03 -0700")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 9655
Cc: 9655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

severity 9655 wishlist
thanks

> The doc string says "LOCALE-NAME should be a string which is the name of
> a locale supported by the system."  Isn't the set of locales supported
> by the system something that Emacs can determine, and then make these
> available as completion candidates?

I think so, yes.

> Why should a user have to investigate or guess which locales
> are choosable?

Because nobody provided a patch to provide the completion table.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9655; Package emacs. Full text available.

Message received at 9655 <at> debbugs.gnu.org:


Received: (at 9655) by debbugs.gnu.org; 3 Oct 2011 07:27:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 03 03:27:52 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RAcwI-0007oG-6W
	for submit <at> debbugs.gnu.org; Mon, 03 Oct 2011 03:27:51 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eliz@HIDDEN>) id 1RAcwF-0007o8-6O
	for 9655 <at> debbugs.gnu.org; Mon, 03 Oct 2011 03:27:48 -0400
Received: from eliz by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <eliz@HIDDEN>)
	id 1RAcuu-0002FH-Us; Mon, 03 Oct 2011 03:26:25 -0400
Date: Mon, 03 Oct 2011 03:26:24 -0400
Message-Id: <E1RAcuu-0002FH-Us@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: drew.adams@HIDDEN
In-reply-to: <E1RAcje-00016M-LZ@HIDDEN> (message from Eli Zaretskii
	on Mon, 03 Oct 2011 03:14:46 -0400)
Subject: Re: bug#9655: 24.0.50; `set-locale-environment' should use completion
References: <4C96B18257394010B38C38DDD093AA0F@HIDDEN>
	<E1RAcje-00016M-LZ@HIDDEN>
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: 9655
Cc: 9655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

> Date: Mon, 03 Oct 2011 03:14:46 -0400
> From: Eli Zaretskii <eliz@HIDDEN>
> Cc: 9655 <at> debbugs.gnu.org
> Reply-To: Eli Zaretskii <eliz@HIDDEN>
> 
> > From: "Drew Adams" <drew.adams@HIDDEN>
> > Date: Sun, 2 Oct 2011 12:45:03 -0700
> > 
> > It also says: "The locale names supported by your system can typically
> > be found in a directory named `/usr/share/locale' or `/usr/lib/locale'."
> > This does not help users who are not on a UNIX/Gnu/Linux platform.
> > Where can they be found on Windows, for instance?
> 
> Nowhere a mere mortal can see it.  The OS maintains the list of
> supported locales, and will divulge it via a certain C-level API.  But
> you cannot find that list by searching files or directories, AFAIK.
> As an interactive user, you can see the list in the Control Panel, but
> programmatically the list is available only through that API.

Forgot to mention that this API has a Lisp binding in Emacs:
w32-get-valid-locale-ids.  E.g., try

  (mapcar 'w32-get-locale-info (w32-get-valid-locale-ids))





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9655; Package emacs. Full text available.

Message received at 9655 <at> debbugs.gnu.org:


Received: (at 9655) by debbugs.gnu.org; 3 Oct 2011 07:16:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 03 03:16:12 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RAcl1-0007Xw-HI
	for submit <at> debbugs.gnu.org; Mon, 03 Oct 2011 03:16:12 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eliz@HIDDEN>) id 1RAckz-0007Xo-2X
	for 9655 <at> debbugs.gnu.org; Mon, 03 Oct 2011 03:16:10 -0400
Received: from eliz by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <eliz@HIDDEN>)
	id 1RAcje-00016M-LZ; Mon, 03 Oct 2011 03:14:46 -0400
Date: Mon, 03 Oct 2011 03:14:46 -0400
Message-Id: <E1RAcje-00016M-LZ@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Drew Adams" <drew.adams@HIDDEN>
In-reply-to: <4C96B18257394010B38C38DDD093AA0F@HIDDEN>
	(drew.adams@HIDDEN)
Subject: Re: bug#9655: 24.0.50; `set-locale-environment' should use completion
References: <4C96B18257394010B38C38DDD093AA0F@HIDDEN>
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: 9655
Cc: 9655 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

> From: "Drew Adams" <drew.adams@HIDDEN>
> Date: Sun, 2 Oct 2011 12:45:03 -0700
> 
> It also says: "The locale names supported by your system can typically
> be found in a directory named `/usr/share/locale' or `/usr/lib/locale'."
> This does not help users who are not on a UNIX/Gnu/Linux platform.
> Where can they be found on Windows, for instance?

Nowhere a mere mortal can see it.  The OS maintains the list of
supported locales, and will divulge it via a certain C-level API.  But
you cannot find that list by searching files or directories, AFAIK.
As an interactive user, you can see the list in the Control Panel, but
programmatically the list is available only through that API.

> Some of the code looks as if it is specific to UNIX/Gnu/Linux/X-Window.
> Should the setting of `locale-translation-file-name' be specific to such
> systems, for instance?

Maybe, but I'm not sure a simple test for file's existence is worth
ugly system-dependent conditions.  If nothing else, it allows Windows
users to have locale translations, something that could be considered
a feature.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9655; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Oct 2011 19:46:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 02 15:46:27 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RARzW-0008Ve-PK
	for submit <at> debbugs.gnu.org; Sun, 02 Oct 2011 15:46:27 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1RARzU-0008VW-1f
	for submit <at> debbugs.gnu.org; Sun, 02 Oct 2011 15:46:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RARyB-0003Zf-Ob
	for submit <at> debbugs.gnu.org; Sun, 02 Oct 2011 15:45:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:50544)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RARyB-0003ZI-Ka
	for submit <at> debbugs.gnu.org; Sun, 02 Oct 2011 15:45:03 -0400
Received: from eggs.gnu.org ([140.186.70.92]:53982)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RARyA-0007qn-Gl
	for bug-gnu-emacs@HIDDEN; Sun, 02 Oct 2011 15:45:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RARy9-0003Ym-89
	for bug-gnu-emacs@HIDDEN; Sun, 02 Oct 2011 15:45:02 -0400
Received: from rcsinet15.oracle.com ([148.87.113.117]:19579)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1RARy8-0003Yi-WC
	for bug-gnu-emacs@HIDDEN; Sun, 02 Oct 2011 15:45:01 -0400
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237])
	by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	p92JiwhA008182
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <bug-gnu-emacs@HIDDEN>; Sun, 2 Oct 2011 19:45:00 GMT
Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157])
	by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	p92JivSj004187
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <bug-gnu-emacs@HIDDEN>; Sun, 2 Oct 2011 19:44:58 GMT
Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64])
	by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	p92Jiq68007558
	for <bug-gnu-emacs@HIDDEN>; Sun, 2 Oct 2011 14:44:52 -0500
Received: from dradamslap1 (/10.159.61.165)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Sun, 02 Oct 2011 12:44:52 -0700
From: "Drew Adams" <drew.adams@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: 24.0.50; `set-locale-environment' should use completion
Date: Sun, 2 Oct 2011 12:45:03 -0700
Message-ID: <4C96B18257394010B38C38DDD093AA0F@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109
Thread-Index: AcyBO8detGRD/x3KRaSKUNNU0+Cotg==
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090204.4E88BF3C.0011:SCFMA922111,ss=1,re=-4.000,fgs=0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

The doc string says "LOCALE-NAME should be a string which is the name of
a locale supported by the system."  Isn't the set of locales supported
by the system something that Emacs can determine, and then make these
available as completion candidates?  Why should a user have to
investigate or guess which locales are choosable?
 
It also says: "The locale names supported by your system can typically
be found in a directory named `/usr/share/locale' or `/usr/lib/locale'."
This does not help users who are not on a UNIX/Gnu/Linux platform.
Where can they be found on Windows, for instance?
 
Some of the code looks as if it is specific to UNIX/Gnu/Linux/X-Window.
Should the setting of `locale-translation-file-name' be specific to such
systems, for instance?
 
It also looks like the code for this command should be split
up/factored.  Much of the command body is apparently about
non-interactive use (e.g. nil LOCALE-NAME) - factor that out, for
instance.
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-09-19 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt'
 
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default enable-multibyte-characters: t
 





Acknowledgement sent to "Drew Adams" <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#9655; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.