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