]> git.eshelyaron.com Git - emacs.git/commit
Don't add magic comment to Ruby files for utf-8 encoding
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 28 Apr 2021 02:11:36 +0000 (05:11 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 28 Apr 2021 02:11:36 +0000 (05:11 +0300)
commit6a078097c98902b3d90ec614a8f96d027203c812
tree8e3dd9f5b62b32a0541795e59f809d0c6a508e86
parentc62262736ca9fd5a012565fb5ab50e2dd4ff6a4b
Don't add magic comment to Ruby files for utf-8 encoding

* lisp/progmodes/ruby-mode.el (ruby-encoding-map):
Add entry for utf-8 (bug#48043).
(ruby--detect-encoding): Don't convert to string too early, so
that returning nil is meaningful.
(ruby-mode-set-encoding): Convert to string here.
lisp/progmodes/ruby-mode.el