Project

General

Profile

Actions

Bug #8592

closed

when outputing to console, it's encoding is ignored for Windows

Added by davispuh (Dāvis Mosāns) almost 11 years ago. Updated over 10 years ago.

Status:
Third Party's Issue
Assignee:
Target version:
-
ruby -v:
ruby 2.0.0p195 (2013-05-14) [x64-mingw32]
[ruby-core:55743]

Description

=begin
for example code

#!/usr/bin/env ruby
#encoding: utf-8
print "testing ā"

when open CMD with changed encoding ie. ((%chcp 1257%))

it wont correctly output ((ā)) even that encoding and console does support it.

also if we change console's encoding to utf-8 with ((%chcp 65001%))
both Ruby versions (1.9 and 2.0) will crash (see attachment)

=end


Files

ruby_crash.txt (3.99 KB) ruby_crash.txt davispuh (Dāvis Mosāns), 07/02/2013 05:06 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0