Actions
Bug #17400
openIncorrect character downcase for Greek Sigma
Bug #17400:
Incorrect character downcase for Greek Sigma
Description
An issue caused by this bug was first reported at Discourse support community at https://meta.discourse.org/t/unicode-username-results-in-error-loading-profile-page/173182?u=falco.
The issue is that in Greek, there are two ways to downcase the letter ‘Σ’
- ‘ς’ when it is used at the end of a word
- ‘σ’ anywhere else
NodeJS follows this rule:
➜ node
Welcome to Node.js v12.11.1.
Type ".help" for more information.
> "ΣΠΥΡΟΣ".toLowerCase()
'σπυρος'
Python too:
➜ python
Python 3.8.2 (default, Nov 23 2020, 16:33:30)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> "ΣΠΥΡΟΣ".lower()
'σπυρος'
Ruby (both 2.7 and 3) doesn't:
Actions