From: "usa (Usaku NAKAMURA)" Date: 2013-12-11T23:57:00+09:00 Subject: [ruby-core:59057] [Backport 200 - Backport #8942][Closed] Wrong encoding for Windows native error messages Issue #8942 has been updated by usa (Usaku NAKAMURA). Status changed from Assigned to Closed ---------------------------------------- Backport #8942: Wrong encoding for Windows native error messages https://bugs.ruby-lang.org/issues/8942#change-43614 Author: davispuh (D��vis Mos��ns) Status: Closed Priority: Normal Assignee: cruby-windows Category: Target version: =begin Ruby uses console's encoding/code page for Windows native error messages, but that's wrong. Windows error messages aren't related to console at all. To get code page for WinAPI ANSI (A) functions have to use (()) But even better would be to use Wide/Unicode (W) functions then don't have to worry about encoding as everything would be UTF-16 I've localized version of Windows and so all error messages are translated. Here's (()) script (windows-1257 is code page used by windows for me so by changing to it I get correct output) Output on (()) (it's exactly same for 1.9.3) (that error message "Sist��ma nevar atrast nor��d��to failu." means "The system cannot find the file specified") It's probably not only place where are such issue with encoding. =end -- http://bugs.ruby-lang.org/