[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101180] Re: Spectre Mitigations
— Chris Seaton <chris@...>
2020/12/01
I wouldn’t recommend using Ruby to run in-process untrusted code in the first place. Are people doing that?
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
We are pleased to announce the release of Ruby 3.0.0. From 2015 we
4 messages
2020/12/25
[ruby-core:101492] [Ruby master Bug#17400] Incorrect character downcase for Greek Sigma
From:
sam.saffron@...
Date:
2020-12-17 04:26:17 UTC
List:
ruby-core #101492
Issue #17400 has been updated by sam.saffron (Sam Saffron).
Java has complicated opinions as well:
class Main {
public static void main(String args[]) {
System.out.println("Σ".toLowerCase());
System.out.println("ΣΣs".toLowerCase());
System.out.println("ΣΣ".toLowerCase());
System.out.println("ΣΣ, sss".toLowerCase());
System.out.println("ΣΣ,sss".toLowerCase());
System.out.println("ΣΣ;sss".toLowerCase());
System.out.println("ΣΣ:sss".toLowerCase());
System.out.println("ΣΣ: sss".toLowerCase());
System.out.println("ΣΣ^sss".toLowerCase());
System.out.println("ΣΣ.sss".toLowerCase());
System.out.println("ΣΣ. sss".toLowerCase());
System.out.println("ΣΣ'sss".toLowerCase());
System.out.println("ΣΣ$sss".toLowerCase());
}
}
σ
σσs
σς
σς, sss
σς,sss
σς;sss
σς:sss
σς: sss
σς^sss
σσ.sss
σς. sss
σσ'sss
σς$sss
full stop (.) and single quote (') are handled differently than comma (,) and other special chars. This is one very tricky edge case.
----------------------------------------
Bug #17400: Incorrect character downcase for Greek Sigma
https://bugs.ruby-lang.org/issues/17400#change-89270
* Author: xfalcox (Rafael Silva)
* Status: Open
* Priority: Normal
* Assignee: duerst (Martin Dürst)
* ruby -v: ruby 3.0.0dev (2020-12-16T18:46:44Z master 93ba3ac036) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
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:
```
➜ ruby --version
ruby 3.0.0dev (2020-12-16T18:46:44Z master 93ba3ac036) [x86_64-linux]
➜ irb
irb(main):001:0> "ΣΠΥΡΟΣ".downcase
=> "σπυροσ"
```
```
➜ ruby --version
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
➜ irb
irb(main):001:0> "ΣΠΥΡΟΣ".downcase
=> "σπυροσ"
```
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>