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: getpwent, user-full-name and utf-8 Date: Wed, 21 Mar 2007 21:51:35 +0100 Message-ID: <857itanwvc.fsf@lola.goethe.zz> References: <86zm66q5ov.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174510313 20456 80.91.229.12 (21 Mar 2007 20:51:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2007 20:51:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 21 21:51:47 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 1HU7mc-0001Af-3l for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2007 21:51:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HU7oK-0005V3-22 for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2007 15:53:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HU7oG-0005U5-Mq for emacs-devel@gnu.org; Wed, 21 Mar 2007 16:53:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HU7oF-0005QJ-92 for emacs-devel@gnu.org; Wed, 21 Mar 2007 16:53:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HU7oF-0005Pq-5Q for emacs-devel@gnu.org; Wed, 21 Mar 2007 15:53:27 -0500 Original-Received: from mail-in-07.arcor-online.net ([151.189.21.47]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HU7mV-0003Oc-7j; Wed, 21 Mar 2007 16:51:39 -0400 Original-Received: from mail-in-01-z2.arcor-online.net (mail-in-09-z2.arcor-online.net [151.189.8.21]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 7BBE3252E59; Wed, 21 Mar 2007 21:51:37 +0100 (CET) Original-Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id 6E04E28EF1D; Wed, 21 Mar 2007 21:51:37 +0100 (CET) Original-Received: from lola.goethe.zz (dslb-084-061-021-060.pools.arcor-ip.net [84.61.21.60]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 3A5F0107173; Wed, 21 Mar 2007 21:51:37 +0100 (CET) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id A056C1C4F93F; Wed, 21 Mar 2007 21:51:35 +0100 (CET) In-Reply-To: (Eli Zaretskii's message of "Wed\, 21 Mar 2007 21\:37\:38 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (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:68255 Archived-At: Eli Zaretskii writes: >> From: David Kastrup >> Date: Wed, 21 Mar 2007 10:58:08 +0100 >> >> I propose that we bite the bullet, assume a fixed external system >> encoding of utf-8 for such strings, and recode accordingly. > > I'd rather assume that usernames are encoded in the locale's > encoding, not necessarily in UTF-8. That assumes that every user operates under the same locale, and that this locale agrees with the locale of the system files. In particular on multi-user machines, that is not realistic. It might be reasonable to add a new variable to hold the system locale which should not depend on the user locale. However, it is somewhat late for this. Clearly, assuming emacs-mule encoding for the system, as it now appears the case, is always wrong. For current systems, assuming utf-8 will likely be correct most of the time, at least. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum