GNOME Bugzilla – Bug 361876
gedit crashes on zh_CN.GB18030 when print out pdf in a localized directory
Last modified: 2006-11-10 09:06:50 UTC
gedit crashes during pdf print because job->priv->num_affines = 0. To reproduce: 1. Invoke gedit on zh_CN.GB18030 2. Input Ctrl + P and launch the print dialog. 3. choose to print to a pdf file,and choose a directory to save the pdf file which containing multibyte character; 4.click "print" button to generate the pdf file; the gedit crash I can reproduce this on Solaris 11 and Fedora Core 5. It's also related with bug 324150 I'm attaching the patch.
Created attachment 74613 [details] Example file to be tested
Created attachment 74614 [details] [review] Patch for libgnomeprint/gnome-print-job.c Attached the patch.
Comment on attachment 74614 [details] [review] Patch for libgnomeprint/gnome-print-job.c Good idea. num_affines is a gint. Let's use if (num_affines >= 1)
modified the conditional and commited.