Project

General

Profile

Bug #6160

'\\'.delete('\\') raise ArgumentError: empty string

Added by znz (Kazuhiro NISHIYAMA) about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 2.0.0dev (2012-03-17 trunk 35072) [x86_64-linux]
[ruby-dev:45374]

Description

r35069 の変更の影響でクリーンビルドすると
../tool/transcode-tblgen.rb:758:in `delete': empty string (ArgumentError)
で止まります。

再現条件を絞り込んだところ '\'.delete('\') で ArgumentError になりました。

Associated revisions

Revision ea6511c6
Added by znz (Kazuhiro NISHIYAMA) about 6 years ago

  • string.c (trnext): fix bug with string ending with '\'.
    [Bug #6160]

  • test/ruby/test_string.rb (TestString#test_delete): test for
    above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 35073
Added by kazu about 6 years ago

  • string.c (trnext): fix bug with string ending with '\'.
    [Bug #6160]

  • test/ruby/test_string.rb (TestString#test_delete): test for
    above.

Revision 35073
Added by znz (Kazuhiro NISHIYAMA) about 6 years ago

  • string.c (trnext): fix bug with string ending with '\'.
    [Bug #6160]

  • test/ruby/test_string.rb (TestString#test_delete): test for
    above.

Revision 35073
Added by kazu about 6 years ago

  • string.c (trnext): fix bug with string ending with '\'.
    [Bug #6160]

  • test/ruby/test_string.rb (TestString#test_delete): test for
    above.

Revision 35073
Added by kazu about 6 years ago

  • string.c (trnext): fix bug with string ending with '\'.
    [Bug #6160]

  • test/ruby/test_string.rb (TestString#test_delete): test for
    above.

Revision 35073
Added by kazu about 6 years ago

  • string.c (trnext): fix bug with string ending with '\'.
    [Bug #6160]

  • test/ruby/test_string.rb (TestString#test_delete): test for
    above.

History

#1 Updated by znz (Kazuhiro NISHIYAMA) about 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r35073.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • string.c (trnext): fix bug with string ending with '\'.
    [Bug #6160]

  • test/ruby/test_string.rb (TestString#test_delete): test for
    above.

Also available in: Atom PDF