Project

General

Profile

Bug #1476

ruby -w warns about encoding used as RDoc

Added by drbrain (Eric Hodel) over 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-05-13 trunk 23418) [i386-darwin9.7.0]
Backport:
[ruby-core:23470]

Description

=begin
$ 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
=end

History

#1

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r23437.
=end

Also available in: Atom PDF