unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: handa@m17n.org
Subject: Re: environment variable don't get coding conversion
Date: Sun, 26 Jan 2003 21:31:39 -0500	[thread overview]
Message-ID: <E18cz3j-0001nF-00@fencepost.gnu.org> (raw)
In-Reply-To: <200301252205.h0PM5gsx029853@beta.mvs.co.il> (ehud@unix.mvs.co.il)

    > "make non-ascii usable" is not specific enough for me to understand.
    > I cannot be sure if there is a real problem.

    I'd say "Make non-ASCII usable" means that the env var should be usable
    in Emacs sub shell. i.e. getenv in program run in subshell will get the
    proper value (usually an 8 bit characters for ISO-8859-x).

That is true, now, in the normal case.  The normal case is that Emacs
inherits the environment variable.  When a subprocess of Emacs inherits it,
Emacs should make sure never to have modified it accidentally.

Are you talking about some different case? If so, could you be
specific?

    The `process-environment' can hold the values in multibyte but 
    `child_setup' and `getenv_internal' (in callproc.c) should transform
    the values to unibyte (or whatever necessary for other coding systems
    like CJK and utf-8).

That would make the normal case unreliable.  The cure would be worse
than the disease.

    The way to overcome it in Emacs is to set the env var like this:
      (setenv "HUTST" (encode-coding-string "????" 'hebrew-iso-8bit))

Perhaps the setenv function (and maybe getenv too) should do this
encoding and decoding using locale-coding-system.  Would you like
to give that a try?

  parent reply	other threads:[~2003-01-27  2:31 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <rzqadi1i9ka.fsf@albion.dl.ac.uk>
     [not found] ` <200301170613.PAA12807@etlken.m17n.org>
2003-01-18  0:46   ` environment variable don't get coding conversion Richard Stallman
2003-01-20  0:38     ` Kenichi Handa
2003-01-20 16:46       ` Richard Stallman
2003-01-21 18:21         ` Dave Love
2003-01-23  7:59           ` Richard Stallman
2003-01-23 23:04             ` Dave Love
2003-01-25 19:22               ` Richard Stallman
2003-01-25 22:05                 ` Ehud Karni
2003-01-26 14:41                   ` Kai Großjohann
2003-01-26 16:11                     ` Eli Zaretskii
2003-01-27 13:18                       ` Stefan Monnier
2003-01-27  2:48                     ` Kenichi Handa
2003-01-26 18:50                   ` Dave Love
2003-01-27  2:31                   ` Richard Stallman [this message]
2003-01-28 18:42                     ` Dave Love
2003-01-26 18:22                 ` Dave Love
2003-01-21 18:18       ` Dave Love
2003-01-23  8:00         ` Richard Stallman
2003-01-25  0:56           ` Kenichi Handa
2003-01-25 17:09             ` Eli Zaretskii
2003-01-26 15:36               ` Richard Stallman
2003-01-26 16:08                 ` Eli Zaretskii
2003-01-27 17:41                   ` Richard Stallman
2003-01-27  2:27                 ` Kenichi Handa
2003-01-26 18:23             ` Dave Love

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E18cz3j-0001nF-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=handa@m17n.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).