rem: var segments = []; for (var count = stream.available(); count; count = stream.available()) { var segment = sis.read(count); segments.push(segment); } 
add: var segments = []; for (var count = stream.available(); count; count = stream.available()) segments.push(sis.readBytes(count)); 
context: this.readFromStream = function(stream, charset){    var sis = this.CCSV("@mozilla.org/scriptableinputstream;1", "nsIScriptableInputStream");    sis.init(stream);    var segments = [];    for (var count = stream.available(); count; count = stream.available())    {        var segment = sis.read(count);        segments.push(segment);    }    sis.close();    var text = segments.join("");    return this.convertToUnicode(text, charset);};
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/01dec9c4407b1ce11a8e6e7e2314ae63921ba454/lib.js/clean/extension/content/firebug/lib.js