[#79440] [Ruby trunk Bug#13188] Reinitialize Ruby VM. — shyouhei@...
Issue #13188 has been updated by Shyouhei Urabe.
6 messages
2017/02/06
[#79441] Re: [Ruby trunk Bug#13188] Reinitialize Ruby VM.
— SASADA Koichi <ko1@...>
2017/02/06
On 2017/02/06 10:10, shyouhei@ruby-lang.org wrote:
[#79532] Immutable Strings vs Symbols — Daniel Ferreira <subtileos@...>
Hi,
15 messages
2017/02/15
[#79541] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/15
Em 15-02-2017 05:05, Daniel Ferreira escreveu:
[#79543] Re: Immutable Strings vs Symbols
— Daniel Ferreira <subtileos@...>
2017/02/16
Hi Rodrigo,
[#79560] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/16
Em 15-02-2017 22:39, Daniel Ferreira escreveu:
[ruby-core:79589] [Ruby trunk Bug#13220] Enhance support of Unicode strings manipulation
From:
radovan.smitala@...
Date:
2017-02-18 14:59:58 UTC
List:
ruby-core #79589
Issue #13220 has been updated by Radovan Smitala. Shyouhei Urabe wrote: > Radovan Smitala wrote: > > It's not my blog post. But when i tried some testing cases they were really wrong and unexpected. > > Can you, then, show us your testing cases so that we can look at the "wrong and unexpected" results? This new information appears on blogpost: > NOTE: After publication, some readers pointed out that many of the failures I mentioned wouldn't have happened if I would have normalized the unicode test strings. This is true. However strings aren't automatically normalized by Ruby or Rails (in any of the apps I tested). These tests were always meant to illustrate the worst-case and I think they're still useful in that regard. It looks like, author used some non-standard or normalized strings. ~~~ ruby [1] pry(main)> "辰".ord => 97 [2] pry(main)> "辰".unicode_normalized? => false [3] pry(main)> "辰".unicode_normalize.ord => 228 [4] pry(main)> "辰".ord => 228 [5] pry(main)> "辰".unicode_normalized? => true ~~~ Whole issue is just about that Ruby doesn't automatically normalize strings to Unicode. ---------------------------------------- Bug #13220: Enhance support of Unicode strings manipulation https://bugs.ruby-lang.org/issues/13220#change-63018 * Author: Radovan Smitala * Status: Feedback * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16] * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- Hi, last days, Starr Horne posted very interesting testing results about manipulation unicode strings in Ruby 2.4. And many methods doesn't work as excepted. Article: http://blog.honeybadger.io/ruby-s-unicode-support/ -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>