diff options
| author | Kenichi Handa | 2003-02-25 06:19:36 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-02-25 06:19:36 +0000 |
| commit | 1ebb05c430dfc6bd212eba02e2e2f5a5ef416daf (patch) | |
| tree | f24c2b9fa8baa80b5f60bfd0e0080ea39f67bd25 /lisp/env.el | |
| parent | bb8db7e1f53a421671c4ecbfa32b6b3242e2c961 (diff) | |
| download | emacs-1ebb05c430dfc6bd212eba02e2e2f5a5ef416daf.tar.gz emacs-1ebb05c430dfc6bd212eba02e2e2f5a5ef416daf.zip | |
(setenv): Fix previous change.
Diffstat (limited to 'lisp/env.el')
| -rw-r--r-- | lisp/env.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/env.el b/lisp/env.el index 912634482bf..3fde25f5246 100644 --- a/lisp/env.el +++ b/lisp/env.el | |||
| @@ -121,13 +121,11 @@ a side-effect." | |||
| 121 | nil | 121 | nil |
| 122 | t)))) | 122 | t)))) |
| 123 | (if (and (multibyte-string-p variable) locale-coding-system) | 123 | (if (and (multibyte-string-p variable) locale-coding-system) |
| 124 | (unless (memq (coding-system-base locale-coding-system) | 124 | (let ((codings (find-coding-systems-string (concat variable value)))) |
| 125 | (find-coding-systems-string (concat variable value))) | 125 | (unless (or (eq 'undecided (car codings)) |
| 126 | (error "Can't encode `%s=%s' with `locale-coding-system'" | 126 | (memq (coding-system-base locale-coding-system) codings)) |
| 127 | variable (or value ""))) | 127 | (error "Can't encode `%s=%s' with `locale-coding-system'" |
| 128 | (unless (memq 'undecided (find-coding-systems-string variable)) | 128 | variable (or value ""))))) |
| 129 | (error "Can't encode `%s=%s' with unspecified `locale-coding-system'" | ||
| 130 | variable (or value "")))) | ||
| 131 | (if unset | 129 | (if unset |
| 132 | (setq value nil) | 130 | (setq value nil) |
| 133 | (if substitute-env-vars | 131 | (if substitute-env-vars |