[#76442] [Ruby trunk Feature#11741] Migrate Ruby to Git from Subversion — naruse@...
Issue #11741 has been updated by Yui NARUSE.
3 messages
2016/07/19
[#76515] [Ruby trunk Bug#12610] webrick: protect from httpoxy — nagachika00@...
Issue #12610 has been updated by Tomoyuki Chikanaga.
3 messages
2016/07/22
[ruby-core:76328] [Ruby trunk Bug#12577] Is '$' punctuation or not? Inconsistency between us-ascii and UTF-8
From:
duerst@...
Date:
2016-07-09 12:49:08 UTC
List:
ruby-core #76328
Issue #12577 has been reported by Martin D端rst.
----------------------------------------
Bug #12577: Is '$' punctuation or not? Inconsistency between us-ascii and UTF-8
https://bugs.ruby-lang.org/issues/12577
* Author: Martin D端rst
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.4.0dev (2016-07-09 trunk 55618) [x86_64-cygwin]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
US-ASCII thinks '$' is punctuation. UTF-8 thinks it's not.
This means that the following two scripts:
```
# encoding: us-ascii
puts '$' =~ /\p{Punct}/ ? 'match' : 'no match'
```
and
```
# encoding: utf-8
puts '$' =~ /\p{Punct}/ ? 'match' : 'no match'
```
produce different results. It also means that the output from the single line script
```
puts '$' =~ /\p{Punct}/ ? 'match' : 'no match'
```
changed when we changed the default script encoding from US-ASCII to UTF-8.
This may be okay as it is, but I'm reporting it here to check what others think.
--
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>