From: Eric Hodel <drbrain@...7.net>
Date: 2011-08-20T08:27:20+09:00
Subject: [ruby-core:39025] [Ruby 1.9 - Feature #5206][Open] ruby -K should warn


Issue #5206 has been reported by Eric Hodel.

----------------------------------------
Feature #5206: ruby -K should warn
http://redmine.ruby-lang.org/issues/5206

Author: Eric Hodel
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 


When ruby is run with -K it changes the default encoding of all files even when that may be incompatible with the source.  If many libraries are used -K may cause incorrect behavior.

Now that we have the "coding:" magic comment ruby should warn if the -K flag is used and suggest that "coding:" magic comment be used instead.


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