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

version» Context lines:

pike.git/lib/modules/Standards.pmod/IIM.pmod:125:    mapping(string:string|array(string)) res = ([]);       // 0x0404 is IPTC IIM    array blocks = (data / "8BIM\4\4")[1..];    if (!sizeof(blocks)) {    werror("No 8BIM/IPTC IIM markers found in data\n");    return res;    }    //werror("blocks: %O\n", blocks);    foreach(blocks, string block) { -  //werror("block: %O\n", String.string2hex(block)); +  //werror("block: %x\n", block);    if (sizeof(block) < 6) {    werror("Malformed 8BIM block\n");    continue;    }       string block_type_2;    int block_length;    string info;       if (block[0]) {
pike.git/lib/modules/Standards.pmod/IIM.pmod:195:    break;    }       if (!has_value(indices(fields), record_set)) {    werror("Unknown record set marker: %O\n", record_set);    break;    }       //werror("%3d: ", id);    //werror("%O\n", data); -  //werror("info: %O\n", String.string2hex(info)); +  //werror("info: %x\n", info);    string label =    fields[record_set][id] ||    (string)record_set + ":" + (string)id;       if (label == "coded character set") {    string charset = ([    "\e%/@": "UTF-16", // ISO-IR 162 (NB: Actually UCS-2 level 1)    "\e%/A": "UTF-32", // ISO-IR 163 (NB: Actually UCS-4 level 1)    "\e%/B": "ISO-8859-1",// ISO-IR 125 (NB: Actually binary)    "\e%/C": "UTF-16", // ISO-IR 174 (NB: Actually UCS-2 level 2)