diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-12 08:01:08 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-12 08:01:08 +0000 |
| commit | c208df01ca0bebfb13c50af7027d946e6b7fae8c (patch) | |
| tree | 201445b4963488d4801b931a9eee67531a965540 | |
| parent | d66a0f0ab1563d482cfda1c8a8274afa408afce1 (diff) | |
| download | ruby-c208df01ca0bebfb13c50af7027d946e6b7fae8c.tar.gz ruby-c208df01ca0bebfb13c50af7027d946e6b7fae8c.tar.xz ruby-c208df01ca0bebfb13c50af7027d946e6b7fae8c.zip | |
* misc/ruby-mode.el (ruby-mode-set-encoding): special treat for
compatibility with -Ks.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | misc/ruby-mode.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index da2cd16aa..de9cd6864 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -253,6 +253,9 @@ Also ignores spaces after parenthesis when 'space." (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) |
