[Freewx-maint] Bug#702378: libwxgtk2.8-0: segv printing postscript in a latin-1 locale
Kevin Ryde
user42 at zip.com.au
Tue Mar 5 20:35:26 UTC 2013
Package: libwxgtk2.8-0
Version: 2.8.12.1-12
Severity: normal
Attempting to print to a postscript file in a latin-1 locale gets a
segfault. For example the demo in
/usr/share/doc/wx2.8-examples/examples/samples/printing/
File/Print menu
click on the Print to File
click ok
enter a filename and directory
click save
=>
segfault
gdb claims it to be in wxPostScriptDC::DoGetTextExtent() dcpsg.cpp line
2151 and has p==NULL. If my sources are up-to-date that line would be
for(p=(unsigned char *)wxMBSTRINGCAST strbuf; *p; p++)
Maybe it's something locale related. If I make a utf8 and switch to it
like LC_ALL=en_US.UTF-8 then the print works. In that case it warns too
that I don't have file /usr/share/wx/gs_afm/Helv.afm, if that makes a
difference.
Is that p strbuf thing a conversion to a locale string to measure the
characters or something? Dunno what it should do if the locale is not
enough for the string to be printed, but you'd hope it didn't crash.
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-486
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages libwxgtk2.8-0 depends on:
ii libatk1.0-0 2.4.0-2
ii libc6 2.13-10
ii libexpat1 2.1.0-1
ii libfontconfig1 2.9.0-7.1
ii libfreetype6 2.4.9-1.1
ii libgcc1 1:4.6.1-3
ii libgdk-pixbuf2.0-0 2.26.1-1
ii libgl1-mesa-glx [libgl1] 8.0.5-3
ii libglib2.0-0 2.33.12+really2.32.4-5
ii libglu1-mesa [libglu1] 8.0.5-3
ii libgtk2.0-0 2.24.10-2
ii libjpeg8 8d-1
ii libpango1.0-0 1.30.0-1
ii libpng12-0 1.2.49-3
ii libsm6 2:1.2.1-2
ii libstdc++6 4.6.1-3
ii libtiff4 3.9.6-11
ii libwxbase2.8-0 2.8.12.1-12
ii libxinerama1 2:1.1.2-1
ii multiarch-support 2.13-38
ii zlib1g 1:1.2.7.dfsg-13
libwxgtk2.8-0 recommends no packages.
Versions of packages libwxgtk2.8-0 suggests:
pn libgnomeprintui2.2-0 <none>
-- no debconf information
More information about the Freewx-maint
mailing list