The application pdftotext gives an error with Latin2 encoding because the /usr/share/xpdf/latin2/Latin2.unicodeMap file contains an empty line. The xpdf-latin2.tar.gz should downloaded again from ftp://ftp.foolabs.com/pub/xpdf/xpdf-latin2.tar.gz Reproducible: Always Steps to Reproduce: 1. emerge xpdf-latin2 2. echo 'textEncoding Latin2' >> /etc/xpdfrc 3. pdftotext <*.pdf> Actual Results: There is an error message: Error: Bad line (5) in unicodeMap file for the 'Latin2' encoding Expected Results: No error message. Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r11 i686) ================================================================= System uname: 2.6.7-gentoo-r11 i686 Transmeta(tm) Crusoe(tm) Processor TM5800 Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -fomit-frame-pointer -ffast-math -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -ffast-math -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/gimb/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apache2 apm arts avi berkdb bitmap-fonts cdr cups dvd encode esd foomaticdb gcj gdbm gif gnome gpm gtk gtk2 imagemagick imlib java jpeg lcms libg++ libwww mad mikmod motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib png qt quicktime readline ruby sdl slang spell sqlite ssl svga tcpd tetex tiff truetype unicode x86 xml2 xmms xprint xv zlib"
fixed.