Your message dated Wed, 31 Dec 2008 16:17:13 +0000
with message-id <[email protected]>
and subject line Bug#510234: fixed in inkscape 0.46-5
has caused the Debian Bug report #510234,
regarding inkscape: don't terminate on bad utf8(?) in pdf import
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
510234: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510234
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: inkscape
Severity: important
Version: 0.46-3
Hi Wolfram,
thanks for maintaining inkscape and apologies for sending this to you
instead of upstream directly.
When converting the attached testcase.pdf (generated by latex testcase ;
dvips testcase ; ps2pdf testcase.ps (*not* pdflatex) from the tex),
inkscape currently fails and with the patch works.
There seem to be several exceptions to catch here, I observed
std:length_error (because string::append was passed length
string::n_pos) and possibly Glib::ConvertError.
I have tested this agains 0.46-4, too, with similar results.
Kind regards
T.
--
Thomas Viehmann, http://thomas.viehmann.net/
--- inkscape-0.46/src/extension/internal/pdfinput/svg-builder.cpp~
+++ inkscape-0.46/src/extension/internal/pdfinput/svg-builder.cpp
@@ -1208,11 +1208,16 @@
os_y << delta_pos[1];
y_coords.append(os_y.str());
last_delta_pos = delta_pos;
-
- // Append the character to the text buffer
- text_buffer.append((char *)&glyph.code, 1);
-
- glyphs_in_a_row++;
+
+ try {
+ // Append the character to the text buffer
+ text_buffer.append((char *)&glyph.code, 1);
+ glyphs_in_a_row++;
+ }
+ catch (std::exception& e) {
+ std::cerr << "Error converting glyphs in PDF: " << e.what()<< std::endl;
+ }
+
i++;
}
_container->appendChild(text_node);
testcase.pdf
Description: Adobe PDF document
\documentclass{article}
\usepackage[T1,T2A]{fontenc}
\pagestyle{empty}
\begin{document}
{\(\approx \pm e_3\) in fooish bars}
\end{document}
--- End Message ---
--- Begin Message ---
Source: inkscape
Source-Version: 0.46-5
We believe that the bug you reported is fixed in the latest version of
inkscape, which is due to be installed in the Debian FTP archive:
inkscape_0.46-5.diff.gz
to pool/main/i/inkscape/inkscape_0.46-5.diff.gz
inkscape_0.46-5.dsc
to pool/main/i/inkscape/inkscape_0.46-5.dsc
inkscape_0.46-5_powerpc.deb
to pool/main/i/inkscape/inkscape_0.46-5_powerpc.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Wolfram Quester <[email protected]> (supplier of updated inkscape package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 30 Dec 2008 23:40:25 +0100
Source: inkscape
Binary: inkscape
Architecture: source powerpc
Version: 0.46-5
Distribution: unstable
Urgency: low
Maintainer: Wolfram Quester <[email protected]>
Changed-By: Wolfram Quester <[email protected]>
Description:
inkscape - vector-based drawing program
Closes: 510234
Changes:
inkscape (0.46-5) unstable; urgency=low
.
* Fix error in bash completion file introduced in the last upload.
Thanks to Salvatore Bonaccorso for spotting this.
* Include patch by Thomas Viehmann, which fixes a crash with pdf import in
some cases (Closes: #510234).
* upload sponsored by Guido Guenther <[email protected]>
Checksums-Sha1:
c4defea32a9635e2580c7fe451d4cc80ecbe698d 1387 inkscape_0.46-5.dsc
e78bea426adcfbfc1f1c20a76dce330c29a90346 23108 inkscape_0.46-5.diff.gz
5d81d38ac2c29cb3aa210352dbc2c5601e1fdd81 18601078 inkscape_0.46-5_powerpc.deb
Checksums-Sha256:
4f5a18ba49e54dce81feaf48e3512b7a7f8eeaf30db20b99d8057d1fdaedef40 1387
inkscape_0.46-5.dsc
fa7105cd9eaf3b1943d552168020eeef32e46e520799b7dfc118929b6a2177e7 23108
inkscape_0.46-5.diff.gz
00844c3b069f010b1fef53fc5bc585c1e8d705bfcefc0051810f6615f00cd778 18601078
inkscape_0.46-5_powerpc.deb
Files:
fd2f458300109fd457837270b891eb01 1387 graphics optional inkscape_0.46-5.dsc
8666aaf4b1b528eea6b76ff2bc19bf0f 23108 graphics optional
inkscape_0.46-5.diff.gz
6c2935a51e1367bddb8e7108d357a102 18601078 graphics optional
inkscape_0.46-5_powerpc.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFJW5f5n88szT8+ZCYRAhN4AJ9C2tiWfuz/C7kmIlsnrqR0+MmQBQCfc3ej
I7REXGqVI/Ntj3BFVNkwLnE=
=3AVq
-----END PGP SIGNATURE-----
--- End Message ---