Project

General

Profile

Bug #21450

Updated by Stranger6667 (Dmitry Dygalo) 3 months ago

Behavior for `Symbol#upcase` and `String#upcase` differs for `i` character if the `:turkic` option is present 

 I'd expect `val.upcase(:turkic)` behaves consistently for both cases: 

 ```ruby 
 'i'.upcase(:turkic) 
 # "İ"     with dot 
 :i.upcase(:turkic) 
 # :I      no dot 
 ``` 

 However, when a non-ASCII character is present, then the case mapping on `Symbol` works the same way as with `String`: 


 ```ruby 
 :iФ.upcase(:turkic) 
 # :İФ     # with dot 
 'iФ'.upcase(:turkic) 
 # "İФ"    # with dot  

 ```

Back