ActionsLike0
Feature #13770
closedCan't create valid Cyrillic-named class/module
Description
Can't create a valid Cyrillic-named class. If I have a file мир.rb:
# 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
Updated by nobu (Nobuyoshi Nakada) over 7 years ago
- ruby -v deleted (
2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]) - Backport deleted (
2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN) - Tracker changed from Bug to Feature
Updated by nobu (Nobuyoshi Nakada) over 7 years ago
- Status changed from Open to Assigned
- Assignee set to matz (Yukihiro Matsumoto)
Updated by duerst (Martin Dürst) over 7 years ago
- Related to Bug #11859: Regexp matching with \p{Upper} and \p{Lower} for EUC-JP doesn’t work. added
Updated by nobu (Nobuyoshi Nakada) about 6 years ago
- Has duplicate Bug #15524: Unicode not Supported in Class Names added
ActionsLike0