From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: Re: No coding system used for environment variables Date: Wed, 05 Mar 2008 11:22:03 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <200802212140.m1LLeebW008878@freddi.uddeborg.se> <47CDEBFD.1060603@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1204683744 4034 80.91.229.12 (5 Mar 2008 02:22:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 02:22:24 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, =?ISO-8859-1?Q?G=F6ran?= Uddeborg , 38-done@emacsbugs.donarmstrong.com To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 05 03:22:51 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JWjHO-0002Xs-Kc for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Mar 2008 03:22:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWjGr-00009S-2d for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Mar 2008 21:22:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWjGm-00007s-9h for bug-gnu-emacs@gnu.org; Tue, 04 Mar 2008 21:22:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWjGk-00005n-OZ for bug-gnu-emacs@gnu.org; Tue, 04 Mar 2008 21:22:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWjGk-00005Q-CT for bug-gnu-emacs@gnu.org; Tue, 04 Mar 2008 21:22:10 -0500 Original-Received: from ntp.math.s.chiba-u.ac.jp ([133.82.132.2] helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWjGf-0001vA-Mg; Tue, 04 Mar 2008 21:22:06 -0500 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 8065E2C4A; Wed, 5 Mar 2008 11:22:03 +0900 (JST) In-Reply-To: <47CDEBFD.1060603@gnu.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: NetBSD 3.0 (DF) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17652 Archived-At: >>>>> On Wed, 05 Mar 2008 00:40:29 +0000, Jason Rumney sai= d: > Version: 22.1.92 G=F6ran Uddeborg wrote: >> It seems there is no coding system applied to values of environment >> variables. >>=20 > Thank you for your report. This should be now fixed for 22.2. I think you mean the latest changes for fileio.c below: 2008-03-05 Jason Rumney * fileio.c (Fexpand_file_name): Decode home directory names. (Fsubstitute_in_file_name): Decode substituted variables. But I'd strongly suggest to revert this changes at this timing of pretest for upcoming Emacs 22.2. First, some coding systems are not ready until some .elc files get loaded (a chicken-and-egg problem). Second, as DECODE_FILE causes GC and string compaction in general, some variables such as `nm' in Fexpand_file_name may not point to valid data after that. You may also want to see a related patch in http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-05/msg00115.html YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp