Project

General

Profile

Actions

Bug #15467

closed

Creating a class with a Cyrillic first symbol in the name leads to a SyntaxError in IRB

Added by an_vlad (Vladislav Andreev) over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
[ruby-core:90732]

Description

What happens: a syntax error occurs when a user writes class Класс and hits 'Enter' in IRB.

What is expected to happen: the same thing that happens when you create a class in IRB with class SomeClass line and hit 'Enter'.

How to reproduce:

  1. Run IRB.
  2. Write: class Класс and hit 'Enter'.

This leads to a syntax error: unexpected end-of-input, expecting end.

Some details:

  • class Класс; end will successfully create a class.
  • It seems like having a Cyrillic symbol as the first letter in a class name causes this error: class ZКласс works fine.
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0