[Pkg-lyx-devel] Bug#700828: lyx2lyx fails on version 345 files when textclass contains funny characters
chrysn
chrysn at fsfe.org
Mon Feb 18 00:26:07 UTC 2013
Package: lyx-common
Version: 2.0.3-3
Severity: normal
File: /usr/share/lyx/lyx2lyx/lyx2lyx
when converting an old lyx file from version 345 whose textclass
contains non-ascii characters (eg "Übungsblatt"), lyx2lyx fails:
> Traceback (most recent call last):
> File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 86, in <module>
> main()
> File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 81, in main
> doc.write()
> File "/usr/share/lyx/lyx2lyx/LyX.py", line 356, in write
> self.output.write(line.encode(self.encoding)+"\n")
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)
as there is no indication that the characters available in textclass are
limited (given it's basically a file name, and non-ascii characters in
textclass work perfectly in normal operation), i think this should be
considered a bug.
attached, there is a file that triggers the problem (it expects a
textclass file named "Übungsblatt.layout").
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.7-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lyx-common depends on:
ii dpkg 1.16.9
ii python 2.7.3-4
ii tex-common 3.15
Versions of packages lyx-common recommends:
ii lyx 2.0.3-3
lyx-common suggests no packages.
-- no debconf information
--
To use raw power is to make yourself infinitely vulnerable to greater powers.
-- Bene Gesserit axiom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Konstruktionen.lyx.gz
Type: application/octet-stream
Size: 884 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-lyx-devel/attachments/20130218/c6e679dc/attachment.obj>
-------------- 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-lyx-devel/attachments/20130218/c6e679dc/attachment.pgp>
More information about the Pkg-lyx-devel
mailing list