[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ruby-mode : ruby-mode-set-encoding

From: Stephen J. Turnbull
Subject: Re: ruby-mode : ruby-mode-set-encoding
Date: Wed, 04 Mar 2009 11:05:06 +0900

Stefan Monnier writes:

 > So you're saying that Ruby uses the same "-*- coding: <foo> -*-" as used
 > by Emacs?  That makes sense, then, thank you,

As does Python, and it is mandatory in Python for non-ASCII IIRC.  See
PEP 263 for details.  AFAIK Python modes don't try to enforce it
(yet), but they might in the future, for the same reasons that
ruby-mode does.

This should be considered equivalent to an encoding declaration in an
XML fragment.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]