Bug #1476: ruby -w warns about encoding used as RDoc
http://redmine.ruby-lang.org/issues/show/1476

Author: Eric Hodel
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2009-05-13 trunk 23418) [i386-darwin9.7.0]

$ cat b.rb
# Here is how you set encoding in your file:
#
#  # -*- coding: UTF-8 -*-
$ ruby19 -vw b.rb
ruby 1.9.2dev (2009-05-13 trunk 23418) [i386-darwin9.7.0]
ruby19: warning: encoding 'UTF-8' is ignored, valid only in the first line except for shebang line.

Note: lib/erb.rb has two comments like this, on lines 68 and 72


----------------------------------------
http://redmine.ruby-lang.org