Hi,

Am Mittwoch, 29. Jul 2009, 16:43:36 +0900 schrieb Brian Candler:
> Can someone confirm whether this is intentional or not?
> 
> >> RUBY_DESCRIPTION
> => "ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]"
> >> s = "über"
> => "über"
> >> s.upcase
> => "üBER"
> 
> That is, a lower-case "ü" is not uppercased to "". And yet, "" is
> detected as an upper-case letter:
> 
> >> "BER" =~ /[[:upper:]]/
> => 0
> >> "BER" =~ /[[:lower:]]/
> => nil

By the way: I detected that there are some unicode characters where
it is not clear whether they are up- or downcase. For example the
DZ digraph has a version Dz that is the downcased version of DZ
and the upcased version of dz.

  U+01F1  
  U+01F2  
  U+01F3  

  http://en.wikipedia.org/wiki/Latin_Extended-B_unicode_block

Vim's ~ operator cycles through the three values. How will or
should Ruby treat them?

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de