Project

General

Profile

Actions

Bug #18590

closed

String#downcase and CAPITAL LETTER I WITH DOT ABOVE

Added by andrykonchin (Andrew Konchin) about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Target version:
-
[ruby-core:107624]

Description

Downcasing for "İ" character works in an unexpected way:

'İ'.downcase
=> "i̇"

Expected result - downcasing should return "i". Instead, it returns small "i" and additional "dot" character:

'İ'.downcase.chars
=> ["i", "̇"]

According to the standard Unicode case mapping character 'İ'(0130) maps to lowercased 'i' (0069).

0130;LATIN CAPITAL LETTER I WITH DOT ABOVE;Lu;0;L;0049 0307;;;;N;LATIN CAPITAL LETTER I DOT;;;0069;

https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0