rem: url + "&fmt-out=text%2Fcalendar", utf8ToIcal, 
add: url + "&fmt-out=text%2Fcalendar", stringToIcal, 
context: calWcapCalendar.prototype.modifyItem = function(    newItem, oldItem, iListener ){    this.log( "modifyItem() call: " + newItem.id );    if (this.readOnly)        throw Components.interfaces.calIErrors.CAL_IS_READONLY;        try {        if (! newItem.id)            throw new Error("new item has no id!");                var url = this.getStoreUrl( newItem );        url += ("&uid=" + newItem.id);        if (newItem.parentItem == newItem) { // is master            // (WCAP_STORE_TYPE_MODIFY) error if not existing:            url += "&storetype=2";            url += "&mod=4"; // THIS AND ALL INSTANCES            url += this.encodeRecurrenceParams( newItem, oldItem );        }        else {            // modifying occurences lands here: occurence may not exist            url += "&mod=1"; // THIS INSTANCE            // if not set, whole series of events is modified:            var rid = getIcalUTC(newItem.recurrenceId);            url += ("&rid=" + rid);        }                var this_ = this;        this.issueAsyncRequest(            url + "&fmt-out=text%2Fcalendar", utf8ToIcal,            function( wcapResponse ) {                this_.modifyItem_resp( wcapResponse, oldItem, iListener );            } );    }    catch (exc) {        if (iListener != null) {            iListener.onOperationComplete(                this.superCalendar, Components.results.NS_ERROR_FAILURE,                Components.interfaces.calIOperationListener.MODIFY,                newItem.id, exc );        }        this.notifyError( exc );    }    this.log( "modifyItem() returning." );};
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/318a30b964defb311d9cf0464a3354a583a7e8f0/calWcapCalendarItems.js/buggy/calendar/providers/wcap/calWcapCalendarItems.js