On 2012/07/03 10:33, naruse (Yui NARUSE) wrote:
>
> 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

Good point. Thinking about it, the rule that \x in strings means these 
strings are in the source encoding seems to work well for non-UTF-8 
strings. For UTF-8, because we have \u, we could make string containing 
\x be ASCII-8BIT.

But maybe that's too complicated.

Regards,   Martin.