[#49637] 重要: 非互換性の可能性 Fwd: [ruby-cvs:62388] duerst:r55225 (trunk): * string.c: Activate full Unicode case mapping for UTF-8 — Martin J. Dürst <duerst@...>
下記の通り、大文字小文字変換を UTF-8 において ASCII
3 messages
2016/05/31
[ruby-dev:49617] [Ruby trunk Bug#12369] optionparseで引数の文字列が受け取れなくなる
From:
soukouki0@...
Date:
2016-05-11 06:10:08 UTC
List:
ruby-dev #49617
Issue #12369 has been reported by soutarou okada.
----------------------------------------
Bug #12369: optionparseで引数の文字列が受け取れなくなる
https://bugs.ruby-lang.org/issues/12369
* Author: soutarou okada
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x64-mingw32]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
#test.rb
require "optparse"
OptionParser.new do |opt|
opt.on('-a', '--aaa=VAL') {|v| p "aaa", v }
opt.on('-b', '--bbb[=VAL]') {|v| p "bbb", v }
opt.on('-c', '--ccc(=VAL)') {|v| p "ccc", v }
opt.parse! ARGV
end
./test.rb -a aa -b bb -c cc
"aaa"
"aa"
"bbb"
**nil**
"ccc"
"cc"
--
https://bugs.ruby-lang.org/