when outputing to console, it's encoding is ignored for Windows
for example code
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)
#1 [ruby-core:55744] Updated by Luis Lavena over 3 years ago
- Status changed from Open to Feedback
- Assignee set to cruby-windows
I was not able to reproduce your problem.
Can you try the same script?
#6 [ruby-core:56820] Updated by Dāvis Mosāns over 3 years ago
Is it some MinGW lib's fault for this?
It's still happening with ruby 1.9.3p448 and 2.0.0p247
seems very similar to #7758 maybe it's even same bug.
Those raster fonts acts really weird...
BTW, it does crash even if I launch ruby.exe directly from cmd.exe with full path.