From: duerst@... Date: 2017-09-06T09:45:54+00:00 Subject: [ruby-core:82671] [Ruby trunk Feature#13770] Can't create valid Cyrillic-named class/module Issue #13770 has been updated by duerst (Martin D��rst). I have checked for upper-case letters without corresponding lower-case letters, with the following short script: ``` ruby -n -e 'l=$_.split(/;/); if l[2]=="Lu" && l[13]=="" then puts l[1];end' 0 && (r != len || memcmp(fold, name, r))) + return TRUE; + } ``` in the patch will work correctly. What is more important for the above patch is whether ---------------------------------------- Feature #13770: Can't create valid Cyrillic-named class/module https://bugs.ruby-lang.org/issues/13770#change-66501 * Author: sb (Sergey Borodanov) * Status: Assigned * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: ---------------------------------------- Can't create a valid Cyrillic-named class. If I have a file **������.rb**: ~~~ ruby # Content of ������.rb: class ������ def ���������������������������� "������������, ������!" end end ~~~ and do in **bash**: ~~~ ruby ������.rb ~~~ I get the error (**SyntaxError**): ~~~ ������.rb:1: class/module name must be CONSTANT ~~~ Same error with module creating and same behavior in **irb** (please, see attachment). At the same time Cyrillic-named constants and methods work fine. It is expected that creating Cyrillic-named class/modules should work without error. ---Files-------------------------------- Screenshot from 2017-07-26 19-08-14.png (64.2 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: