From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: No coding system used for environment variables Date: Thu, 24 Jul 2008 01:10:15 +0100 Message-ID: <4887C867.3060602@gnu.org> References: <87y73s1765.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216858252 15963 80.91.229.12 (24 Jul 2008 00:10:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 00:10:52 +0000 (UTC) Cc: 38@emacsbugs.donarmstrong.com, YAMAMOTO Mitsuharu , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 24 02:11:41 2008 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 1KLoQd-0007ku-VB for ged-emacs-devel@m.gmane.org; Thu, 24 Jul 2008 02:11:32 +0200 Original-Received: from localhost ([127.0.0.1]:55262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLoPk-0000is-BY for ged-emacs-devel@m.gmane.org; Wed, 23 Jul 2008 20:10:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLoPd-0000hY-RV for emacs-devel@gnu.org; Wed, 23 Jul 2008 20:10:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLoPd-0000h0-Ab for emacs-devel@gnu.org; Wed, 23 Jul 2008 20:10:29 -0400 Original-Received: from [199.232.76.173] (port=48596 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLoPd-0000gn-7C for emacs-devel@gnu.org; Wed, 23 Jul 2008 20:10:29 -0400 Original-Received: from mk-outboundfilter-5.mail.uk.tiscali.com ([212.74.114.1]:15744) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLoPd-0000cB-0L for emacs-devel@gnu.org; Wed, 23 Jul 2008 20:10:29 -0400 Original-X-Trace: 61217636/mk-outboundfilter-5.mail.uk.tiscali.com/F2S/$F2S-ACCEPTED/f2s-freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EADhlh0hTQxds/2dsb2JhbACBWrFU X-IronPort-AV: E=Sophos;i="4.31,241,1215385200"; d="scan'208";a="61217636" X-IP-Direction: IN Original-Received: from i-83-67-23-108.freedom2surf.net (HELO wanchan.jasonrumney.net) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP; 24 Jul 2008 01:10:27 +0100 Original-Received: from [192.168.249.27] (chiko.jasonrumney.net [192.168.249.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id D5CD769; Thu, 24 Jul 2008 01:10:40 +0100 (BST) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <87y73s1765.fsf@stupidchicken.com> X-Enigmail-Version: 0.95.6 OpenPGP: id=8086879D X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:101348 Archived-At: Chong Yidong wrote: >> It seems there is no coding system applied to values of environment >> variables. > > What's the current situation with this bug? Jason's patch was reverted, > but nothing else seems to have been done after that. > > Two objections were made to Jason's patch: (i) some coding systems are > not ready until some .elc files get loaded (relevant for special cases, > such as the EMACS_LOAD_PATH variable), and (ii) DECODE_FILE causes GC, > so variables such as `nm' in Fexpand_file_name may not point to valid > data after that. > > If no elegant solution is forthcoming, I'd suggest simply documenting > (i) as a limitation, and dealing with (ii) by simply turning off GC in > the affected part of the function. I think the GC part can be handled the same way as in bug #93 > I noticed that the patch posted at > > http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-05/msg00115.html > > has not been checked into the trunk either. I think the bug reported there is the same as #93, which is fixed in the trunk, but not the branch AFAIK.