Project

General

Profile

Actions

Bug #2001

closed

StringScanner#string= dups and freezes when it shouldn't

Added by tenderlovemaking (Aaron Patterson) almost 16 years ago. Updated about 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-08-27 trunk 24678) [i386-darwin9.8.0]
Backport:
[ruby-core:25145]

Description

=begin
StringScanner#string= will dup the target string and then freeze the duplicate string. It should not do this.

I've attached a patch which demonstrates the problem and fixes it.
=end


Files

strscan.patch (1.22 KB) strscan.patch Fix StringScanner#string= tenderlovemaking (Aaron Patterson), 08/27/2009 07:30 AM
Actions

Also available in: Atom PDF

Like0
Like0