http://bugs.winehq.org/show_bug.cgi?id=20977
Summary: Bad hlp table rendering Product: Wine Version: 1.1.34 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: adys.wh@gmail.com
Created an attachment (id=25145) --> (http://bugs.winehq.org/attachment.cgi?id=25145) Help file
Terrible rendering on attached HLP file. Refer to screenshots.
http://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #1 from Jerome Leclanche adys.wh@gmail.com 2009-12-09 17:53:38 --- Created an attachment (id=25146) --> (http://bugs.winehq.org/attachment.cgi?id=25146) Wine rendering.
http://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #2 from Jerome Leclanche adys.wh@gmail.com 2009-12-09 17:54:04 --- Created an attachment (id=25147) --> (http://bugs.winehq.org/attachment.cgi?id=25147) Wine rendering.
http://bugs.winehq.org/show_bug.cgi?id=20977
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #25146|Wine rendering. |Windows rendering. description| |
http://bugs.winehq.org/show_bug.cgi?id=20977
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=20977
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |nerv@dawncrow.de Ever Confirmed|0 |1
--- Comment #3 from André H. nerv@dawncrow.de 2009-12-10 12:05:04 --- confirming in today's git
http://bugs.winehq.org/show_bug.cgi?id=20977
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |programs
http://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #4 from Jerome Leclanche adys.wh@gmail.com 2010-03-16 15:27:13 --- Still an issue in wine-1.1.40-191-g4b5f6ad.
http://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #5 from Jerome Leclanche adys.wh@gmail.com 2010-05-02 00:39:05 --- Still an issue in wine-1.1.43-408-g3317fc3.
http://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #6 from Jerome Leclanche adys.wh@gmail.com 2012-05-08 06:37:18 CDT --- No change in wine-1.5.3.
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #7 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #8 from André H. nerv@dawncrow.de --- (In reply to Ken Sharp from comment #7)
Is this still an issue in Wine 1.7.45 or later?
Still present, test with: wine winhlp32 ARCON.HLP
https://bugs.winehq.org/show_bug.cgi?id=20977
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #9 from super_man@post.com --- still an issue, but it's quite close to correct 1.8.rc1
There are some names that are written in windows hlp like this
car
but in wine
c a r
https://bugs.winehq.org/show_bug.cgi?id=20977
Jice wine@cardot.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@cardot.net
--- Comment #10 from Jice wine@cardot.net --- Created attachment 53083 --> https://bugs.winehq.org/attachment.cgi?id=53083 WinHLP table patch fix
I has the same problem with hlp files I'm using. Here is a patch that fixes the tables in winhlp32. I will attach some more screenshots to show how in enhanced the program: in my case, some pages (topics) did not show up at all!
This is my first wine patch, please comment.
In particular, the way I'm using to get a value from the registry seems quite complicated to me (I copied some code from wordpad IIRC) ; I think there might be a better approach for this but did not find it.
Thanks in advance for your comments!
https://bugs.winehq.org/show_bug.cgi?id=20977
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #11 from Matteo Bruni matteo.mystral@gmail.com --- Thank you for the patch! Notice though that patches are not picked from Bugzilla, they have to be sent to the wine-patches mailing list.
http://wiki.winehq.org/SubmittingPatches should have a number of useful tips, other things I noticed at a very quick look: - your patch seems to contain a number of separate fixes, you should split them over multiple patches - C++-style comments are not allowed in Wine - don't add obvious comments e.g. "// JCC read the DPI from the registry", also don't mark your changes with comments, git keeps track of code ownership just fine ;) - don't make random whitespace changes - don't leave commented-out code in the patch if there isn't some particularly good reason (and in that case, if (0) { ... } is preferred)
https://bugs.winehq.org/show_bug.cgi?id=20977
curaga@operamail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |curaga@operamail.com
--- Comment #12 from curaga@operamail.com --- *** Bug 39946 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #13 from Jice wine@cardot.net --- Created attachment 53752 --> https://bugs.winehq.org/attachment.cgi?id=53752 0001-winhlp32-fix-table-formatting.patch
adding the patches for review as seen with slackner on #wine-staging
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #14 from Jice wine@cardot.net --- Created attachment 53753 --> https://bugs.winehq.org/attachment.cgi?id=53753 0002-winhlp32-fix-table-formatting.patch
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #15 from Jice wine@cardot.net --- Created attachment 53754 --> https://bugs.winehq.org/attachment.cgi?id=53754 0003-winhlp32-fix-table-formatting.patch
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #16 from Jice wine@cardot.net --- Created attachment 53755 --> https://bugs.winehq.org/attachment.cgi?id=53755 0004-winhlp32-fix-table-formatting.patch
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #17 from Jice wine@cardot.net --- Created attachment 53756 --> https://bugs.winehq.org/attachment.cgi?id=53756 0005-winhlp32-fix-table-formatting.patch
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #18 from Jice wine@cardot.net --- Created attachment 53757 --> https://bugs.winehq.org/attachment.cgi?id=53757 0006-winhlp32-fix-table-formatting.patch
https://bugs.winehq.org/show_bug.cgi?id=20977
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #19 from Jice wine@cardot.net --- here are the 6 patches, hopefully meeting better the guide lines for patches submission ;) Thanks in advance slackner and anyone with the will to check them!
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #20 from Jerome Leclanche jerome@leclan.ch --- Hey Jice, patches are not picked up from Bugzilla. Can you send it to wine-patches?
See https://wiki.winehq.org/Submitting_Patches
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #21 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Jerome Leclanche from comment #20)
Hey Jice, patches are not picked up from Bugzilla. Can you send it to wine-patches?
I was asked to double-check the patches before he submits them, so it is fine to attach them here.
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #22 from Jerome Leclanche jerome@leclan.ch --- My bad. :)
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #23 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Jice from comment #13)
Created attachment 53752 [details] 0001-winhlp32-fix-table-formatting.patch
Just had a look at your patches. As a general remark, the subject line "Fix table formatting" is not really very meaningful and only fits for the last patch. For the other patches, it would be better to describe the real changes, and avoid the extra description in the next line. Some more detailed comments:
1/6 - The idea is fine, but I don't think you catched all occurances of those constants. HLPFILE_SkipParagraph also compares against hardcoded 0x20 and 0x23 values for example.
2/6 - There is never a need to TRACE the function name itself, it will automatically be added by Wine in front of your message. Strings should be passed through debugstr_a() to ensure they are valid before passing them to TRACE.
3/6 - Should be fine.
4/6 - You are adding commented-out code here, which should be avoided. Those parts should probably go into to a later patch, when it is really needed. The detection based on face_offset also looks a bit suspicious.
5/6 - I'm not sure about the rounderr, otherwise it should be fine.
6/6 - There are still various formatting changes in there, I would suggest to remove them or move them to previous patches. Since this is the most critical patch its good to keep the number of unrelated changes as small as possible.
https://bugs.winehq.org/show_bug.cgi?id=20977
--- Comment #24 from Jice wine@cardot.net --- Thank you! 1. OK. I could only find the occurences in HLPFILE_SkipParagraph which had been forgotten. 2. OK. I made use of debugstr_a(). Nevertheless none of the already existing WINE_TRACE make use of it. Should it be addressed in another patch? 3. OK 4. OK. Removed the comments. The face_offset is documented there: http://www.oocities.org/mwinterhoff/helpfile.htm and according to the documentation it is the way to detect the font type (see the |FONT paragraph). 5. Rounderr comes from the fact we have metrics expressed in half points and a scale of 10. This can be removed with very few visual impacts, but the computation is more exact this way. 6. Can you please give me one example of formatting change? I cannot see any, except if you speak of the lines where I added comments for better understanding (like case 0x89: /* hotspot end */)?
https://bugs.winehq.org/show_bug.cgi?id=20977
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #25 from super_man@post.com --- This bug is fixed.
6 patches were merged into wine.
wine-1.9.7-225-g1ccc521
https://bugs.winehq.org/show_bug.cgi?id=20977
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |markk@clara.co.uk
--- Comment #26 from Bruno Jesus 00cpxxx@gmail.com --- *** Bug 14288 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=20977
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |706145c563115afadc4eaab2a4f | |8ae8a7c8b26e5 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #27 from Bruno Jesus 00cpxxx@gmail.com --- I just tested with the file in comment 0 and the rendering is correct as per the Windows screenshot.
https://bugs.winehq.org/show_bug.cgi?id=20977
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #28 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.12.
https://bugs.winehq.org/show_bug.cgi?id=20977
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@redhat.com Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=20977
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #29 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.4.