Jan Vroonhof <vroonhof(a)math.ethz.ch> writes:
 Then this is a bug in XEmacs. Although set-terminal-coding-system is
 very broken by concept under XEmacs (who says the coding system is the 
 same on all TTY devices), it should never ever be needed to use the
 window-system variable under XEmacs.
 
 Jan
 
 P.S. Does this patch help
 
 Index: coding.el
 ===================================================================
 RCS file: /usr/CVSroot/XEmacs/xemacs-20/lisp/coding.el,v
 retrieving revision 1.2
 diff -u -r1.2 coding.el
 --- coding.el	1998/02/28 21:34:56	1.2
 +++ coding.el	1999/05/21 16:22:06
 @@ -115,7 +115,9 @@
    (interactive "zterminal-coding-system: ")
    (get-coding-system coding-system) ; correctness check
    (setq terminal-coding-system coding-system)
 -  (set-console-tty-coding-system (device-console) terminal-coding-system)
 +  ; ### should this affect all current tty consoles ?
 +  (if (eq (device-type) 'tty)
 +      (set-console-tty-coding-system (device-console) terminal-coding-system))
    (redraw-modeline t))
  
  (defun set-pathname-coding-system (coding-system)
  
I tested XEmacs 21.2.15 and it still gives me the same error.
Would you please send this patch to xemacs-patches so that I
won't get the same error again?
-- 
Yoshiki Hayashi