From: Brian Candler Date: 2009-07-29T19:21:55+09:00 Subject: Re: upcase in 1.9.2-preview1 Bertram Scharpf wrote: > Vim's ~ operator cycles through the three values. How will or > should Ruby treat them? I only have access to a slightly older 1.9.2 here, but: >> RUBY_DESCRIPTION => "ruby 1.9.2dev (2009-04-08 trunk 23158) [i686-linux]" >> ["\u01f1", "\u01f2", "\u01f3"].each { |c| puts c =~ /[[:lower:]]/ } 0 => ["捻", "撚", "燃"] >> ["\u01f1", "\u01f2", "\u01f3"].each { |c| puts c =~ /[[:upper:]]/ } 0 => ["捻", "撚", "燃"] So the first is upper, the third is lower, and the second is neither :-) upcase/downcase does not affect any of them - but I'm not sure if the current behaviour is correct, which is why I started this thread. -- Posted via http://www.ruby-forum.com/.