emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: environment variable don't get coding conversion


From: Kenichi Handa
Subject: Re: environment variable don't get coding conversion
Date: Mon, 20 Jan 2003 09:38:17 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Richard Stallman <address@hidden> writes:
>     It seems to me that elements of process-environment should
>     be decoded by locale-coding-system because
>     process-environment is exposed to Emacs Lisp, and there are
>     codes that directly manipulate that variable.

> We would have to encode them again when running a subprocess.  I think
> that could have the effect of altering the values, so that they are
> not passed down properly from Emacs's parent process to its children.

As far as I know, any coding system set in
locale-coding-system is stateless.  None of them uses escape
sequences.  So, decoding and encoding should yield the same
value.  If that is uncertain, we can put the original
unibyte string as a text property (say, `encoded-string') to
each of decoded string.

> It might be better for user programs to decode the values
> if they want to.

User programs?  Then, what to do with M-x setenv?

---
Ken'ichi HANDA
address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]