Project

General

Profile

Actions

Bug #6606

closed

default_external encoding and STDOUT and UTF-8

Added by shyouhei (Shyouhei Urabe) over 12 years ago. Updated over 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
ruby 2.0.0dev (2012-06-19) [x86_64-linux]
Backport:
[ruby-dev:45769]

Description

=begin
微妙なので意図どおりに動いているなら申し訳ない、以下のように -Eを指定してもUTF-8文字列がUTF-8のままで出力されてくるのは「そういうもの」ですか?

LANG=C ruby -Eeuc-jp -e'puts "\u3042\u3093"' | hexdump -C
00000000 e3 81 82 e3 82 93 0a |.......|
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0