Skip to content

Instantly share code, notes, and snippets.

@davispuh davispuh/RubyBug
Created Sep 23, 2013

Embed
What would you like to do?
N:\Projects>ruby -v
ruby 2.0.0p247 (2013-06-27) [x64-mingw32]
N:\Projects>chcp 775
Active code page: 775
N:\Projects>ruby test2.rb
IBM775
Sistńma nevar atrast norŌdŅto failu.
"Sist\xE7ma nevar atrast nor\xE2d\xEEto failu."
Sistēma nevar atrast norādīto failu.
N:\Projects>chcp 1257
Active code page: 1257
N:\Projects>ruby test2.rb
Windows-1257
Sistēma nevar atrast norādīto failu.
"Sistēma nevar atrast norādīto failu."
Sistēma nevar atrast norādīto failu.
N:\Projects>chcp 65001
Active code page: 65001
N:\Projects>ruby test2.rb
P:/Ruby200-x64/lib/ruby/2.0.0/win32/registry.rb:173:in `tr': invalid byte sequence in UTF-8 (ArgumentError)
from P:/Ruby200-x64/lib/ruby/2.0.0/win32/registry.rb:173:in `initialize'
from P:/Ruby200-x64/lib/ruby/2.0.0/win32/registry.rb:231:in `exception'
from P:/Ruby200-x64/lib/ruby/2.0.0/win32/registry.rb:231:in `raise'
from P:/Ruby200-x64/lib/ruby/2.0.0/win32/registry.rb:231:in `check'
from P:/Ruby200-x64/lib/ruby/2.0.0/win32/registry.rb:254:in `OpenKey'
from P:/Ruby200-x64/lib/ruby/2.0.0/win32/registry.rb:385:in `open'
from P:/Ruby200-x64/lib/ruby/2.0.0/win32/registry.rb:496:in `open'
from test.rb:6:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.