Bug#602398: liblatex-encode-perl: Assumes latin1 encoding - produces invalid results when using UTF input
Salvatore Bonaccorso
carnil at debian.org
Fri Aug 31 08:36:16 UTC 2012
Hi Gunnar
On Thu, Nov 04, 2010 at 08:08:08AM -0600, Gunnar Wolf wrote:
> Package: liblatex-encode-perl
> Version: 0.03-1
> Severity: normal
>
> Having a completely UTF8 environment, and even explicitly setting
> Perl's environment to be fully UTF-aware, results in:
>
> 0 gwolf at mosca『29』~$ echo $LANG
> en_US.UTF-8
> 0 gwolf at mosca『30』~$ export PERL_UTF8_LOCALE=1 PERL_UNICODE=AS
> 0 gwolf at mosca『31』~$ perl -mLaTeX::Encode -e 'print LaTeX::Encode::latex_encode("Tħış ïš ffùĺł ȯff ŪŦḞ\n\n")'
> T\"A\textsection\"A\textpm\AA \~A\textasciimacron\AA\textexclamdown{} \"i\textlnot\~A\textonesuperior\"A\textordmasculine\AA \`E\textasciimacron\"i\textlnot \AA\textordfeminine\AA\textbrokenbar\'a\c{}
>
>
> Sadly, this renders this module unusable for documents written in
> basically any language other than English.
I'm preparing now the new upstream version 0.06. It includes now a
latex-encode wrapper script, and it seems to do it now correctly:
$ latex-encode < utf8.test
Tħ{\i}\c{s} {\"i}\v{s} ff{\`u}\'{l}ł ȯff \={U}Ŧ\.{F}
$ cat utf8.test
Tħış ïš ffùĺł ȯff ŪŦḞ
Regards,
Salvatore
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120831/3b41bd9d/attachment.pgp>
More information about the pkg-perl-maintainers
mailing list