Project

General

Profile

Bug #1475

ruby -w warns about encoding for the wrong file

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:23469]

Description

=begin
$ cat a.rb
require 'b'
$ cat b.rb
# here is a comment
#
# -- coding: UTF-8 --
$ ruby19 -vw a.rb
ruby 1.9.2dev (2009-05-13 trunk 23418) [i386-darwin9.7.0]
a.rb:1: warning: encoding 'UTF-8' is ignored, valid only in the first line except for shebang line.
=end

Associated revisions

Revision 39edad03
Added by a_matsuda almost 3 years ago

Fix undefined method 'dump' for nil:NilClass (NoMethodError)

Patch by: Dmitry Vorotilin d.vorotilin@gmail.com (@route)
Signed-off-by: Akira Matsuda ronnie@dio.jp

closes #1475

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 56681
Added by a_matsuda almost 3 years ago

Fix undefined method 'dump' for nil:NilClass (NoMethodError)

Patch by: Dmitry Vorotilin d.vorotilin@gmail.com (@route)
Signed-off-by: Akira Matsuda ronnie@dio.jp

closes #1475

Revision 56681
Added by a_matsuda almost 3 years ago

Fix undefined method 'dump' for nil:NilClass (NoMethodError)

Patch by: Dmitry Vorotilin d.vorotilin@gmail.com (@route)
Signed-off-by: Akira Matsuda ronnie@dio.jp

closes #1475

Revision 56681
Added by a_matsuda almost 3 years ago

Fix undefined method 'dump' for nil:NilClass (NoMethodError)

Patch by: Dmitry Vorotilin d.vorotilin@gmail.com (@route)
Signed-off-by: Akira Matsuda ronnie@dio.jp

closes #1475

Revision 56681
Added by a_matsuda almost 3 years ago

Fix undefined method 'dump' for nil:NilClass (NoMethodError)

Patch by: Dmitry Vorotilin d.vorotilin@gmail.com (@route)
Signed-off-by: Akira Matsuda ronnie@dio.jp

closes #1475

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 r23435.
=end

Also available in: Atom PDF