PDF: Correct Latin_2 translation table

...and fix some more picky compiler issues.
HP: Correct call checking for IO errors

Thanks to Dave Bryan for spotting this typo.