From xemacs-m  Sun Apr 13 12:12:57 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id MAA03558
	for <xemacs-beta@xemacs.org>; Sun, 13 Apr 1997 12:12:56 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id KAA20493;
	Sun, 13 Apr 1997 10:25:48 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: EUC Japanese encoded .elcs lose when loaded
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 13 Apr 1997 10:25:47 -0700
Message-ID: <m2hghaltr8.fsf@altair.xemacs.org>
Lines: 30
X-Mailer: Gnus v5.4.45/XEmacs 20.1

I've been playing around a bit with SKK 10.27.  All of the source
files are encoded EUC Japanese and apparently that's the coding system
used on the bytecompiled files.  How are we supposed to deal with
this?  I can't force the .elcs to be read properly just by setting a
Japanese language environment.  If I do C-u C-x C-f, specify EUC
Japanese encoding and then do a M-x eval-buffer everything is O.K.

What we've got now is suboptimal because XEmacs/MULE is writing out
.elc files that it can't easily read back in.  At least I can't think
of a way offhand to force them to be read in properly.

Question:
In byte-compile-insert-header in bytecomp.el (the routine where we
specify `escape-quoted' for MULE .elcs) why don't we add code to
specify the coding system in the buffer where the bytecode is built
up?
;Original code
	(insert ";;;###coding system: escape-quoted\n")
	(setq buffer-file-coding-system 'escape-quoted)
	;; Lazy loading not yet implemented for MULE files
	;; mrb - Fix this someday.

;Additional code
	(save-excursion
	  (set-buffer byte-compile-outbuffer)
	  (setq buffer-file-coding-system 'escape-quoted))

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

