diff options
| author | Jason Rumney | 2002-04-08 19:23:38 +0000 |
|---|---|---|
| committer | Jason Rumney | 2002-04-08 19:23:38 +0000 |
| commit | a099a2ff9553e2aa3d3517459afcc6605770ac88 (patch) | |
| tree | a99cec6030fd4005375f1a4e5eb46cb6cd7f487c | |
| parent | 81ceefe2ae631e7aa9c8e81b009d21a1e4022a07 (diff) | |
| download | emacs-a099a2ff9553e2aa3d3517459afcc6605770ac88.tar.gz emacs-a099a2ff9553e2aa3d3517459afcc6605770ac88.zip | |
(reset-language-environment): Handle
coding-systems not being defined yet for bootstrapping.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 14 |
2 files changed, 15 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5628198bb32..56ae3b61526 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-04-08 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * international/mule-cmds.el (reset-language-environment): Handle | ||
| 4 | coding-systems not being defined yet. | ||
| 5 | |||
| 1 | 2002-04-07 Sam Steingold <sds@gnu.org> | 6 | 2002-04-07 Sam Steingold <sds@gnu.org> |
| 2 | 7 | ||
| 3 | * vc-cvs.el (vc-cvs-checkin): Pass the required argument to `error'. | 8 | * vc-cvs.el (vc-cvs-checkin): Pass the required argument to `error'. |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 8e92f94707d..76055a0ed77 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -1415,11 +1415,17 @@ The default status is as follows: | |||
| 1415 | ;; users shell appropriately, so should not be altered by changing | 1415 | ;; users shell appropriately, so should not be altered by changing |
| 1416 | ;; language environment. | 1416 | ;; language environment. |
| 1417 | (let ((output-coding | 1417 | (let ((output-coding |
| 1418 | (coding-system-change-text-conversion | 1418 | ;; When bootstrapping, coding-systems are not defined yet, so |
| 1419 | (car default-process-coding-system) 'undecided)) | 1419 | ;; we need to catch the error from check-coding-system. |
| 1420 | (condition-case nil | ||
| 1421 | (coding-system-change-text-conversion | ||
| 1422 | (car default-process-coding-system) 'undecided) | ||
| 1423 | (coding-system-error 'undecided))) | ||
| 1420 | (input-coding | 1424 | (input-coding |
| 1421 | (coding-system-change-text-conversion | 1425 | (condition-case nil |
| 1422 | (cdr default-process-coding-system) 'iso-latin-1))) | 1426 | (coding-system-change-text-conversion |
| 1427 | (cdr default-process-coding-system) 'iso-latin-1) | ||
| 1428 | (coding-system-error 'iso-latin-1)))) | ||
| 1423 | (setq default-process-coding-system | 1429 | (setq default-process-coding-system |
| 1424 | (cons output-coding input-coding))) | 1430 | (cons output-coding input-coding))) |
| 1425 | 1431 | ||