Issue #6679 has been updated by naruse (Yui NARUSE).


= Default Ruby source file encoding to utf-8

it almost can keep compatibility but breaks
* escaped bytes in string literal like "a\xff", its encoding changed from ASCII-8BIT to UTF-8.
* escaped bytes in regexp literal like above

= -U as default

What is the expected merit of this?
----------------------------------------
Feature #6679:  Default Ruby source file encoding to utf-8
https://bugs.ruby-lang.org/issues/6679#change-27732

Author: claytrump (Clay Trump)
Status: Assigned
Priority: Normal
Assignee: naruse (Yui NARUSE)
Category: 
Target version: 


Let's change the default encoding for Ruby source files from US-ASCII
to UTF-8 in Ruby 2.0

??? Convention over Configuration
??? Ruby 1.9 forced encoding for code that was not pure ASCII, so
existing codebase already has magic comments.


In Ruby 2.0, "# encoding: utf-8" can be the default.
--
<lay trum/>


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