Project

General

Profile

Actions

Feature #5206

closed

ruby -K should warn

Added by drbrain (Eric Hodel) over 12 years ago. Updated about 6 years ago.

Status:
Closed
Target version:
-
[ruby-core:39025]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0