Bug 671349 - Reference to undefined property Ci.nsIConverterOutputStream.DEFAULT_REPLACEMENT_CHARACTER. r=rnewman
authorPhilipp von Weitershausen <philipp@weitershausen.de>
Fri, 26 Aug 2011 16:38:46 -0700
changeset 76309 9c24b2af4c0d9ce964685af6f4b7d2f2f14fc2ff
parent 76308 74a49fef4fc49d8db88afb09c716fea6bd43b206
child 76310 84c0f187733508d7c22869c7af4b58d94ba45826
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersrnewman
bugs671349
milestone9.0a1
Bug 671349 - Reference to undefined property Ci.nsIConverterOutputStream.DEFAULT_REPLACEMENT_CHARACTER. r=rnewman
services/sync/modules/log4moz.js
--- a/services/sync/modules/log4moz.js
+++ b/services/sync/modules/log4moz.js
@@ -476,17 +476,17 @@ BlockingStreamAppender.prototype = {
       // Wrap the raw stream in an nsIConverterOutputStream. We can reuse
       // the instance if we already have one.
       if (!this._converterStream) {
         this._converterStream = Cc["@mozilla.org/intl/converter-output-stream;1"]
                                   .createInstance(Ci.nsIConverterOutputStream);
       }
       this._converterStream.init(
         this._outputStream, "UTF-8", STREAM_SEGMENT_SIZE,
-        Ci.nsIConverterOutputStream.DEFAULT_REPLACEMENT_CHARACTER);      
+        Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER);      
     }
     return this._converterStream;
   },
 
   newOutputStream: function newOutputStream() {
     throw "Stream-based appenders need to implement newOutputStream()!";
   },