After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 549361 - Header/footer is garbled, random asian characters printed instead
Header/footer is garbled, random asian characters printed instead
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: [obsolete] Backend:Mozilla
2.22.x
Other All
: Normal normal
: gnome-2-24
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 553375 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-08-25 21:48 UTC by Sam Morris
Modified: 2009-01-02 11:59 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
header/footer corruption example (76.08 KB, application/pdf)
2008-08-25 21:49 UTC, Sam Morris
  Details
Fix print headers with Gecko 1.9 (820 bytes, patch)
2008-10-21 15:24 UTC, Josselin Mouette
committed Details | Review

Description Sam Morris 2008-08-25 21:48:29 UTC
Please describe the problem:
The header and footer of printed pages are printed with random characters from all across Unicode as in the attached example.

They mostly show up as Chinese characters because there are so many, I guess. :)

Steps to reproduce:
1. Print something

Actual results:


Expected results:


Does this happen every time?
Yes

Other information:
Using gecko-1.9 backend built against xulrunner 1.9.0.1.
Comment 1 Sam Morris 2008-08-25 21:49:22 UTC
Created attachment 117370 [details]
header/footer corruption example
Comment 2 Christian Persch 2008-08-25 22:48:38 UTC
On the about:config page, what are the "print.print_*{header,footer}*" prefs values?
Comment 3 Sam Morris 2008-08-26 07:08:33 UTC
print.print_headercenter: empty
print.print_headerleft: &T
print.print_headerright: &U

print.print_footercenter: empty
print.print_footerleft: &PT
print.print_footerright: &D
Comment 4 Sven Arvidsson 2008-08-26 13:16:35 UTC
Even if printing of header and footer is disabled in the print options, the garbled text is visible. 
Comment 5 Klaus Reichl 2008-09-08 10:08:03 UTC
Bug can be looked at using vanilla Debian/Lenny:
 Epiphany 2.22.3
 Powered by Gecko 1.9
File->Print Preview


Comment 6 Reinout van Schouwen 2008-09-23 08:54:38 UTC
*** Bug 553375 has been marked as a duplicate of this bug. ***
Comment 7 Christian Persch 2008-09-29 18:21:11 UTC
Not reproducible here.

Does this happen in a clean profile (epiphany -p) ?
Comment 8 Sven Arvidsson 2008-09-29 18:30:43 UTC
Yes, a clean profile doesn't help.

I guess this is specific to Debian then?
Comment 9 Klaus Reichl 2008-10-15 20:24:09 UTC
Sven Arvidsson wrote:
  I guess this is specific to Debian then?

Tried Debian/Lenny 
 Epiphany 2.22.3
 Powered by Gecko 1.9
File->Print Preview             => Bug is reproducable

against  Ubuntu 8.04.1 hardy
 Epiphany 2.22.2
 Powered by Gecko 1.9
File->Print Preview             => results OK


 

Comment 10 Klaus Reichl 2008-10-15 20:26:18 UTC
Sven Arvidsson wrote:
  I guess this is specific to Debian then?

Tried         Debian/Lenny 
 Epiphany 2.22.3
 Powered by Gecko 1.9
File->Print Preview             => Bug is reproducable

against       Ubuntu 8.04.1 hardy
 Epiphany 2.22.2
 Powered by Gecko 1.9
File->Print Preview             => results OK

Is it 
  2.22.3 vs. 2.22.2
or
  really Debian/Lenny

Hints from epiphany/gnome/printer expert welcome.

cuK


 

Comment 11 Andre Felipe Machado 2008-10-20 18:47:31 UTC
Hello,
Using a virtualbox Debian Lenny machine, I just installed a gnome-environment.
The problem surfaced.
Then, using http://snapshot.debian.org , modified the sources.list

deb http://snapshot.debian.net/archive pool epiphany-browser
deb http://snapshot.debian.net/archive pool xulrunner

Removed epiphany

#apt-get purge epiphany-browser epiphany-browser-data epiphany-gecko 


Then installed a PREVIOUS version of debian epiphany

#apt-get install epiphany-browser=2.22.1.1-1 epiphany-browser-data=2.22.1.1-1 epiphany-gecko=2.22.1.1-1

There was not a 2.22.1.1-2 version of epiphany-gecko at repository, so used a bit older version.

The problem DOES NOT happen with this somewhat older version in Debian.

I hope this help.
Regards.
Andre Felipe Machado

Comment 12 Andre Felipe Machado 2008-10-20 19:02:38 UTC
Hello,
Maybe a quick look at 
http://patch-tracking.debian.net/package/epiphany-browser/2.22.3-4
give a hint about what could cause (if it is a Debian specific problem).
Regards.
Andre Felipe Machado
Comment 13 Andre Felipe Machado 2008-10-20 19:21:26 UTC
Hello,
Here is the Ubuntu 8.04 epiphany-browser patches link for your comparison
https://launchpadlibrarian.net/16523296/epiphany-browser_2.22.2-0ubuntu0.8.04.5.diff.gz
Regards.
Andre Felipe

Comment 14 Josselin Mouette 2008-10-21 15:24:19 UTC
Created attachment 121018 [details] [review]
Fix print headers with Gecko 1.9

Here is a patch from Vincent Caron and myself to fix this issue by converting strings to UTF16 before passing them to nsIPrintSettings.
Comment 15 Christian Persch 2008-10-21 18:40:01 UTC
Please commit to gnome-2-24.
Comment 16 Josselin Mouette 2008-10-22 06:59:56 UTC
Committed (r8596).
Comment 17 Cosimo Cecchi 2009-01-02 11:59:03 UTC
Clearing bug/patch status, as this has already been committed.