[ruby-core:63965] [ruby-trunk - Bug #3376] russian support

From: duerst@...
Date: 2014-07-23 11:06:23 UTC
List: ruby-core #63965
Issue #3376 has been updated by Martin Dürst.

Related to Feature #10085: Add non-ASCII case conversion to String#upcase/downcase/swapcase/capitalize added

----------------------------------------
Bug #3376: russian support
https://bugs.ruby-lang.org/issues/3376#change-47985

* Author: Yury Korolev
* Status: Closed
* Priority: Normal
* Assignee: Yui NARUSE
* Category: M17N
* Target version: 1.9.2
* ruby -v: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]
* Backport: 
----------------------------------------
=begin
 1. String#upcase/String#downcase don't work with russian characters
 
 ruby-1.9.2-preview3 > "привет".upcase
  => "привет" 
 ruby-1.9.2-preview3 > "ПРИВЕТ".downcase
  => "ПРИВЕТ" 
 
 2. Regex doesn't work with POSIX bracket classes
 
 ruby-1.9.2-preview3 > "привет" =~ /[:alpha:]/
  => nil 
 
 It's working with unicode groups
 
 ruby-1.9.2-preview3 > "привет" =~ /\p{L}/
  => 0 
 
 3. Negated unicode groups don't work
 
 SyntaxError: (irb):13: invalid character property name {L}: /\P{L}/
 	from /Users/yury/.rvm/rubies/ruby-1.9.2-preview3/bin/irb:17:in `<main>'
=end




-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next