From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: No coding system used for environment variables Date: Wed, 23 Jul 2008 20:01:54 -0400 Message-ID: <87y73s1765.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216857659 14533 80.91.229.12 (24 Jul 2008 00:00:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 00:00:59 +0000 (UTC) Cc: 38@emacsbugs.donarmstrong.com, emacs-devel@gnu.org To: YAMAMOTO Mitsuharu , Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 24 02:01:48 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 1KLoH2-0005EQ-9M for ged-emacs-devel@m.gmane.org; Thu, 24 Jul 2008 02:01:36 +0200 Original-Received: from localhost ([127.0.0.1]:59751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLoG8-0004GK-DR for ged-emacs-devel@m.gmane.org; Wed, 23 Jul 2008 20:00:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLoG4-0004FZ-Qk for emacs-devel@gnu.org; Wed, 23 Jul 2008 20:00:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLoG4-0004El-9R for emacs-devel@gnu.org; Wed, 23 Jul 2008 20:00:36 -0400 Original-Received: from [199.232.76.173] (port=36237 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLoG4-0004Ed-4u for emacs-devel@gnu.org; Wed, 23 Jul 2008 20:00:36 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:45075 helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLoFz-0007qY-W7; Wed, 23 Jul 2008 20:00:32 -0400 Original-Received: by cyd (Postfix, from userid 1000) id 6185F57E32C; Wed, 23 Jul 2008 20:01:56 -0400 (EDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:101346 Archived-At: > 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 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.