From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Feature request: multibyte user-full-name Date: Tue, 14 Mar 2006 14:44:30 +0900 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1142361071 15326 80.91.229.2 (14 Mar 2006 18:31:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Mar 2006 18:31:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 14 19:31:10 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FJEBE-0000K9-2F for ged-emacs-devel@m.gmane.org; Tue, 14 Mar 2006 19:23:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FJEBD-00085m-6l for ged-emacs-devel@m.gmane.org; Tue, 14 Mar 2006 13:23:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FJ2Kh-0000EI-Il for emacs-devel@gnu.org; Tue, 14 Mar 2006 00:44:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FJ2Kg-0000Cr-Ai for emacs-devel@gnu.org; Tue, 14 Mar 2006 00:44:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FJ2Kg-0000CX-5r for emacs-devel@gnu.org; Tue, 14 Mar 2006 00:44:34 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FJ2On-0005V3-RQ for emacs-devel@gnu.org; Tue, 14 Mar 2006 00:48:50 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k2E5iVPJ022380; Tue, 14 Mar 2006 14:44:31 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k2E5iUJw021138; Tue, 14 Mar 2006 14:44:30 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FJ2Kc-00012w-00; Tue, 14 Mar 2006 14:44:30 +0900 Original-To: AIDA Shinra In-reply-to: (message from AIDA Shinra on Tue, 14 Mar 2006 12:18:14 +0900) 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:51622 Archived-At: In article , AIDA Shinra writes: >> Why do you think that pw_gecos is related to something like >> directory or file name? > About 1: "directory system" is my miswording. I meant "directory > service". Ah, I see, but as for "directory service", we already have ldap-coding-system (lisp/net/ldap.el). It seems that adding "directory-service-coding-system" is confusing. The most specific variable name will be "gecos-coding-system"... not that attractive. > About 2: *Pray* that an operating system and/or administrator adopt > the same encoding. >> Anyway, as far as a system allows users to switch locale, I >> think, pw_gecos must adopt locale-independent encoding, thus >> the possible encoding is one of UTF-*. And, considering >> backward compatibility, it should be UTF-8. Then, how about >> we always decode it by utf-8 (only if it contains a byte >> with MSB set) while falling back to locale-coding-system >> (invalid utf-8 sequence is found), and see if that works on >> any systems? How does GNU/Linux encode it? > A site administrator might choose an encoding other than UTF-8 even if > it is locale-dependent... Ummm. >> By the way, does the mis-decoding of user-full-name lead to >> any serious error? > I can't determine your "serious" means but user-full-name is widely > used anyway. I mean an unrecoverable error. When Emacs incorrectly decodes user-full-name, if it can be recoverable by trying the same command again after setting a proper coding system to some variable, it may not be that serious error. --- Kenichi Handa handa@m17n.org