pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:4252:   }         protected object Charset;      //! This function is called by cpp() when it wants to do   //! character code conversion.   string decode_charset(string data, string charset)   {    if (!Charset) { -  object mod = [object]resolv("Locale"); -  -  Charset = [object](mod && mod["Charset"]); +  Charset = [object]resolv("Charset");    if (!Charset) -  compile_cb_error("Cannot handle charset - no Locale.Charset module found."); +  compile_cb_error("Cannot handle charset - no Charset module found.");    }       if (mixed err = catch {    object decoder = ([function(string:object)]Charset.decoder)(charset);    return ([function(void:string)]([function(string:object)]decoder->    feed)(data)->drain)();    })    compile_cb_rethrow (err);   }