ruby-changes:4267
From: ko1@a...
Date: Wed, 12 Mar 2008 17:01:19 +0900 (JST)
Subject: [ruby-changes:4267] nobu - Ruby:r15757 (trunk): * misc/ruby-mode.el (ruby-mode-set-encoding): special treat for
nobu 2008-03-12 17:01:08 +0900 (Wed, 12 Mar 2008)
New Revision: 15757
Modified files:
trunk/misc/ruby-mode.el
Log:
* misc/ruby-mode.el (ruby-mode-set-encoding): special treat for
compatibility with -Ks.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/misc/ruby-mode.el?r1=15757&r2=15756&diff_format=u
Index: misc/ruby-mode.el
===================================================================
--- misc/ruby-mode.el (revision 15756)
+++ misc/ruby-mode.el (revision 15757)
@@ -253,6 +253,9 @@
(if coding-system
(symbol-name coding-system)
"ascii-8bit"))
+ ;; special treat for compatibility with -Ks
+ (if (string-equal coding-system "shift_jis")
+ (setq coding-system "cp932"))
(if (looking-at "^#![^\n]*ruby") (beginning-of-line 2))
(cond ((looking-at "\\s *#.*-\*-\\s *\\(en\\)?coding\\s *:\\s *\\([-a-z0-9_]+\\)")
(unless (string= (match-string 2) coding-system)
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/