Bug 524463

Summary: [wine] Wordpad print output is empty
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: wineAssignee: Andreas Bierfert <andreas.bierfert>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: andreas.bierfert
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
URL: http://bugs.winehq.org/show_bug.cgi?id=25523
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 21:45:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joachim Frieben 2009-09-20 14:53:21 UTC
Description of problem:
Application "Wine Wordpad" does not allow to print any document, the resulting pages are empty.

Version-Release number of selected component (if applicable):
wine-1.1.29-1.fc11.i586

How reproducible:
Always.

Steps to Reproduce:
1. Open "Wine Wordpad".
2. Type a couple of characters.
3. Print document.
  
Actual results:
Printer ejects an empty page.

Expected results:
Printer ejects page with user input.

Additional info:
Printing from "Notepad" works correctly.

Comment 1 Joachim Frieben 2009-11-13 16:31:33 UTC
Still broken for wine-1.1.32-1.fc11.i586.

Comment 2 Joachim Frieben 2010-02-19 09:43:03 UTC
Still broken for wine-1.1.38-1.fc12.i686.

Comment 3 Joachim Frieben 2010-08-20 19:56:37 UTC
No improvement for wine-1.3.0-1.fc14. As a matter of fact, the issue is not related to the printer driver since the print preview itself is already empty whereas the input window is not.

Comment 4 Andreas Bierfert 2010-10-22 08:27:06 UTC
Could you please try with the new wine in updates-testing (1.3.5). It has a major change regarding printing (switch from using lpr to cups).

Comment 5 Joachim Frieben 2010-10-22 09:16:11 UTC
The print dialog window says "Comment: WINEPS Printer using LPR", and a sample printout is still empty (wine-1.3.5-1.fc14).

Comment 6 Joachim Frieben 2010-11-03 20:24:34 UTC
The print dialog window says "Comment: WINEPS Printer using LPR", and a sample
printout is still empty (wine-1.3.6-1.fc14).

Comment 7 Joachim Frieben 2011-01-29 13:10:15 UTC
The print dialog window says "Comment: WINEPS Printer using LPR", and a sample
printout is still empty (wine-1.3.12-1.fc15).

Comment 8 Joachim Frieben 2011-03-09 09:41:28 UTC
The print dialog window now says "Comment: WINEPS Printer using CUPS" but the printout is still empty. However, given that even the print preview is empty the problem seems to lie elsewhere than in the printing backend (wine-1.3.14-2.fc15).

Comment 9 Joachim Frieben 2011-04-12 04:48:26 UTC
External Bug: Tracker http://bugs.winehq.org/show_bug.cgi?id=25523

  "printing from wordpad prints an empty page to a cups printers".

From http://www.winehq.org/announce/1.1.39

  "wordpad: Fixed quick print so that it doesn't print blank pages."

Comment 10 Joachim Frieben 2011-04-12 11:10:56 UTC
(In reply to comment #9)
- Reference to obsolete http://www.winehq.org/announce/1.1.39 was erroneous.
- Bug 695580 - [bugzilla] project Wine unknown to external bug tracker.

Comment 11 Andreas Bierfert 2011-04-15 06:59:14 UTC
Ok I did some diging. Seems it is caused by the richedit implementation of wine. EM_FORMATRANGE is unimplemented and this should eventually render the font here. 

See in the 1.3.17 sources:

wine-1.3.17/dlls/riched20/editor.c line 3012:
UNSUPPORTED_MSG(EM_FORMATRANGE)

and

wine-1.3.17/programs/wordpad/print.c line 491:
fr.chrg.cpMin = SendMessageW(hEditorWnd, EM_FORMATRANGE, TRUE, (LPARAM)&fr);

So this is not a bug but a missing feature in richedit.

Comment 12 Fedora End Of Life 2012-08-16 21:45:23 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping