Bug #602: CGI::HtmlExtension::popup_menu calls #bytesize on array parameters
http://redmine.ruby-lang.org/issues/show/602

Author: Yura Sokolov
Status: Open, Priority: Normal
Category: lib

After line 623
         values.collect{|value|
           if value.kind_of?(String)
             option({ "VALUE" => value }){ value }
           else
-            if value[value.bytesize - 1] == true
+            if value[value.size - 1] == true
               option({ "VALUE" => value[0], "SELECTED" => true }){
-                value[value.bytesize - 2]
+                value[value.size - 2]
               }
             else
               option({ "VALUE" => value[0] }){
-                value[value.bytesize - 1]
+                value[value.size - 1]
               }
             end
           end
         }.join


----------------------------------------
http://redmine.ruby-lang.org