From: "Bartosz Dziewoński" Date: 2012-04-18T01:16:55+09:00 Subject: Re: Capital Cyrillic letter in Ruby class name (UTF-8) W dniu 17 kwietnia 2012 17:47 użytkownik Vladimir Kerimov napisał: > Here Документ is only a local variable. > Also method definition looks like it was come from hell. > I need to use UTF-8 names for buiseness logic of all other companies who > does not care about English. All they want is suitable logic on Russian. > Simply call Документ.Прочитать(ИдО=123). > Or call Документ.Записать(). > It is on Python, it could be on Ruby but here is very strange limitation > of first character must be ASCII capital letter! ASCII! Why you allow > UTF-8 encoding and forbid to make classes like this: > > class Пользователь >    def Найти(...) >        .... >    end > end Vladimir, unfortunately Unicode and internationalisation in general is hard. In C code (that's what Ruby is written in), checking whether a letter is an ASCII capital one is dead simple. Checking whether is it an Unicode capital requires decoding it from whichever variant of UTF is was encoded in and looking it up in one oh huge tables defining various letter properties to check if it is a capital or not. You would probably have to change parsing rules and a lot of internal code to make it possible, since capital first letter is the only difference between Ruby constant or variable. I think you should try posting to Ruby's bug and feature tracker, at http://bugs.ruby-lang.org/. -- Matma Rex