Hi,

At Tue, 8 Nov 2005 15:48:23 +0900,
Gyoung-Yoon Noh wrote in [ruby-core:06592]:
> In [ruby-core:04882], nobu wrote patch supporting emacs-style encoding
> pragma each source would have its own. But I could not find the patch
> source in CVS HEAD. Have it been ever committed? Or still on discussing
> about that new feature?

Already committed.  But now I noticed pragma for encoding, "coding",
doesn't match with Emacs, which is "encoding".

> I'd like to know how to get source encoding. Currently, I'm using
> $KCODE. But if encoding pragma will be available, how can I use it? I
> expect encoding pragma will affect on $KCODE, so $KCODE will not be
> global variable anymore then, and instantiated for each source. Am I
> right?

The pragma does not affect on $KCODE, it is still global.
There's no way to know what encoding is set by the pragma,
right now.

-- 
Nobu Nakada