Project

General

Profile

Bug #1475

ruby -w warns about encoding for the wrong file

Added by drbrain (Eric Hodel) about 11 years ago. Updated about 9 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

#1

Updated by nobu (Nobuyoshi Nakada) about 11 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