diff -up poppler-0.8.6/poppler/CharCodeToUnicode.cc.liga poppler-0.8.6/poppler/CharCodeToUnicode.cc --- poppler-0.8.6/poppler/CharCodeToUnicode.cc.liga 2008-06-01 17:35:24.000000000 +0300 +++ poppler-0.8.6/poppler/CharCodeToUnicode.cc 2008-08-27 17:37:48.000000000 +0300 @@ -368,6 +368,7 @@ void CharCodeToUnicode::addMapping(CharC } } sMap[sMapLen].u[sMap[sMapLen].len - 1] += offset; + warning("Adding @%d %02X: %s + %X\n", sMapLen, code, uStr, offset); ++sMapLen; } } @@ -480,6 +481,8 @@ void CharCodeToUnicode::setMapping(CharC for (j = 0; j < len; ++j) { sMap[i].u[j] = u[j]; } + for(int k = 0; k < len; ++k) + warning("Setting @%d %02X[%d] -> %04X\n", i, c, k, u[k]); } } @@ -496,6 +499,8 @@ int CharCodeToUnicode::mapToUnicode(Char for (i = 0; i < sMapLen; ++i) { if (sMap[i].c == c) { *u = sMap[i].u; + for(int k = 0; k < sMap[i].len; ++k) + warning("Returning @%d %02X[%d] -> %04X\n", i, c, k, sMap[i].u[k]); return sMap[i].len; } }