rem: convStream.init( inStream, charset, 0, 0x0000 ); 
add: convStream.init( inStream, charset, 0, 63 /* '?' */ ); 
context: function streamToString( inStream, charset ){    if (LOG_LEVEL > 2) {        logMessage( "streamToString()",                    "inStream.available() = " + inStream.available() +                    ", charset = " + charset );    }    // byte-array to string:    var convStream =        Components.classes["@mozilla.org/intl/converter-input-stream;1"]        .createInstance(Components.interfaces.nsIConverterInputStream);    try {        convStream.init( inStream, charset, 0, 0x0000 );        var str = "";        var str_ = {};        while (convStream.readString( -1, str_ )) {            str += str_.value;        }    }    catch (exc) {        throw new Components.Exception(            "error converting stream: " + errorToString(exc) +            "\ncharset: " + charset +            "\npartially read string: " + str, exc );    }    return str;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/89b24d85225964d30a2d9a8ff00b22e173923eeb/calWcapRequest.js/buggy/calendar/providers/wcap/calWcapRequest.js