pike.git / lib / modules / Standards.pmod / IIM.pmod

version» Context lines:

pike.git/lib/modules/Standards.pmod/IIM.pmod:401:       // Remap to standard names:    charset = ([    "cp_1252":"windows1252",    "cp_2":"macintosh",    "cp_utf8": "utf8",    ])[charset] || charset;    }    //werror("Charset: %O\n", charset);    res->charset = ({ charset }); -  object decoder = Locale.Charset.decoder(charset); +  object decoder = Charset.decoder(charset);    foreach(res; string key; array(string) vals) {    res[key] = map(vals,    lambda(string val, object decoder) {    return decoder->feed(val)->drain();    }, decoder);    }    }       return res;   }