[#70843] Re: [ruby-cvs:58952] hsbt:r51801 (trunk): * lib/rubygems: Update to RubyGems HEAD(fe61e4c112). — Eric Wong <normalperson@...>
hsbt@ruby-lang.org wrote:
3 messages
2015/09/17
[ruby-core:70677] [Ruby trunk - Bug #11511] Problem with cyrillic letter И
From:
usa@...
Date:
2015-09-07 13:29:23 UTC
List:
ruby-core #70677
Issue #11511 has been updated by Usaku NAKAMURA.
File prompt.jpg added
How to reproduce?
I could not reproduce with irb.

----------------------------------------
Bug #11511: Problem with cyrillic letter И
https://bugs.ruby-lang.org/issues/11511#change-54069
* Author: xiro@inboxdesign.me xiro@inboxdesign.me
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.0.0p643 (2015-02-25) [i386-mingw32]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
I have problem dealing with the И letter.
'И'.encoding #>ASCII-8BIT
'И'.force_encoding('ASCII-8BIT').encode('utf-8') #> UndefinedConversionError: "\xC8" from ASCII-8BIT to UTF-8
'И'.force_encoding('cp1251').encode('utf-8')[0].ord #> 1048
'И'.force_encoding('cp1251').encode('utf-8') #> "�?"
1048.chr #> "�?" (why so strange output?)
This issue is blocker for me.
---Files--------------------------------
prompt.jpg (58.8 KB)
--
https://bugs.ruby-lang.org/