From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: environment variable don't get coding conversion Date: Mon, 27 Jan 2003 08:18:57 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200301271318.h0RDIvB30264@rum.cs.yale.edu> References: <200301252205.h0PM5gsx029853@beta.mvs.co.il> <84r8b07z30.fsf@lucy.is.informatik.uni-duisburg.de> <1659-Sun26Jan2003191130+0200-eliz@is.elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043676670 12286 80.91.224.249 (27 Jan 2003 14:11:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2003 14:11:10 +0000 (UTC) Cc: kai.grossjohann@uni-duisburg.de Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18d9yc-0003Bs-00 for ; Mon, 27 Jan 2003 15:11:06 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18dA2q-0004cJ-00 for ; Mon, 27 Jan 2003 15:15:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18d9tV-0000cZ-09 for emacs-devel@quimby.gnus.org; Mon, 27 Jan 2003 09:05:49 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18d9Dz-0002cs-00 for emacs-devel@gnu.org; Mon, 27 Jan 2003 08:22:55 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18d9D4-0002RJ-00 for emacs-devel@gnu.org; Mon, 27 Jan 2003 08:22:19 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18d9AS-00020o-00 for emacs-devel@gnu.org; Mon, 27 Jan 2003 08:19:16 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id h0RDIvB30264; Mon, 27 Jan 2003 08:18:57 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: "Eli Zaretskii" Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11125 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11125 > > And what happens if you do (setenv foo bar) and bar is a string which > > can't be encoded in the coding system specified for environment > > variables? What currently happens is that foo gets the internal (i.e. emacs-mule) encoding of bar, which is more or less guaranteed to be the wrong thing to do. So whatever change we make, it won't be much worse than the current state of affairs. We could of course require foo and bar to be unibyte strings so as to force caller to do the encoding. Stefan