[#66126] Creation/Conversion methods/functions table for Ruby types — SASADA Koichi <ko1@...>
Hi,
5 messages
2014/11/07
[#66248] [ruby-trunk - Feature #10423] [PATCH] opt_str_lit*: avoid literal string allocations — normalperson@...
Issue #10423 has been updated by Eric Wong.
3 messages
2014/11/13
[#66595] [ruby-trunk - Bug #10557] [Open] Block not given when the argument is a string — bartosz@...
Issue #10557 has been reported by Bartosz Kopinski.
3 messages
2014/11/30
[ruby-core:66542] [ruby-trunk - Bug #10493] Wrong encoding for Etc.getlogin in Windows
From:
usa@...
Date:
2014-11-28 07:33:23 UTC
List:
ruby-core #66542
Issue #10493 has been updated by Usaku NAKAMURA.
Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: DONE, 2.1: REQUIRED
Backported into `ruby_2_0_0` at r48634.
memo:
I changed the patch a little, because 2.0.0 doesn't have rb_w32_wstr_to_mbstr().
2.1 has the function, so I guess it's no problem to backport to 2.1 from trunk.
----------------------------------------
Bug #10493: Wrong encoding for Etc.getlogin in Windows
https://bugs.ruby-lang.org/issues/10493#change-50157
* Author: Dāvis Mosāns
* Status: Closed
* Priority: Normal
* Assignee:
* Category: ext
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.4p265 (2014-10-27 revision 48166) [x64-mingw32]
* Backport: 2.0.0: DONE, 2.1: REQUIRED
----------------------------------------
~~~ruby
name = Etc.getlogin # I've Windows username "Dāvis"
puts name # D�vis
puts name.inspect # "D\xE2vis"
puts name.encoding # ASCII-8BIT
name.force_encoding('Windows-1257')
puts name # Dāvis
~~~
As you can see \xE2 isn't "ā" in ASCII, but it is for Windws-1257 encoding.
--
https://bugs.ruby-lang.org/