http://bugs.winehq.org/show_bug.cgi?id=12498
Summary: fixme:htmlhelp:HtmlHelpW Not all HH cases handled correctly Product: Wine Version: 0.9.58. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P3 Component: hhctrl.ocx AssignedTo: wine-bugs@winehq.org ReportedBy: dirk.mueller@br-automation.com
Created an attachment (id=12061) --> (http://bugs.winehq.org/attachment.cgi?id=12061) chm file
I want to view chm help files on Linux. Opening for example the attached file 3DI175.6_io.chm is not working.
After invoking following command:
wine hh 3DI175.6_io.chm
the output
fixme:htmlhelp:HtmlHelpW Not all HH cases handled correctly
is shown and nothing more is happening. To get back the console prompt I have to press CTRL+C.
I am using wine 0.9.59. It's not in the Versions List so I have chosen 0.9.58.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #1 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-11 01:53:00 --- Created an attachment (id=12062) --> (http://bugs.winehq.org/attachment.cgi?id=12062) log with htmlhelp traces
the log was created by invoking the following command:
WINEDEBUG=+htmlhelp wine hh 3DI175.6_io.chm >& chm.log
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #2 from Tefnet developers developers@tefnet.pl 2008-04-11 11:21:26 --- Created an attachment (id=12065) --> (http://bugs.winehq.org/attachment.cgi?id=12065) HtmlHelp no #STRINGS patch
Apparently it is possible to have chm file without #STRINGS in it.
http://bugs.winehq.org/show_bug.cgi?id=12498
Tefnet developers developers@tefnet.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |developers@tefnet.pl
--- Comment #3 from Tefnet developers developers@tefnet.pl 2008-04-11 11:24:28 --- (In reply to comment #1)
Created an attachment (id=12062)
--> (http://bugs.winehq.org/attachment.cgi?id=12062) [details]
log with htmlhelp traces
the log was created by invoking the following command:
WINEDEBUG=+htmlhelp wine hh 3DI175.6_io.chm >& chm.log
http://bugs.winehq.org/show_bug.cgi?id=12498
Hin-Tak Leung htl10@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |htl10@users.sourceforge.net
--- Comment #4 from Hin-Tak Leung htl10@users.sourceforge.net 2008-04-13 08:23:51 --- (sigh...) This guy just won't read. *Full* information, including a public URL and the name of the application he tries to run. Attaching a chm/exe - is considered wrong, and it has been discussed elsewhere - for all purposes, it could have been a specially crafted malware/virus to trick others to run in wine. URL please.
The minimum it could be, is a specially broken chm, constructed by somebody who does not know how to write a chm file, and looking for programming advice from other to fix his problems. URL please.
(I am glad that tefnet had not tried to look at the attached chm file himself.)
If it is a specially broken chm, written by an inexperienced person, there is no point in taking it further.
Why is it so hard to convince this guy that full information is required? It has been a week going around in circles.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #5 from Tefnet developers developers@tefnet.pl 2008-04-13 09:42:18 --- (In reply to comment #4)
(sigh...) This guy just won't read. *Full* information, including a public URL and the name of the application he tries to run. Attaching a chm/exe - is considered wrong, and it has been discussed elsewhere - for all purposes, it could have been a specially crafted malware/virus to trick others to run in wine. URL please.
Don't be so hard on him. We still need people to report such bugs even if they fail to do it right at the beginning.
We have dedicated (self rebuilding) boxes for Windows/Wine development so I don't care if it's malware/virus :)
I know that sometimes it's impossible to provide application name or url for application because of licensing problems etc. We actually working on one like that right now and it takes me a lot of time to report bug finding "free" application with similar bug which I can use instead of this, which I'm working on.
Anyway.. even if this chm file is broken (it looks like it). It still works in Windows, so it should also run in Wine.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #6 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-14 04:06:13 --- (In reply to comment #2)
Created an attachment (id=12065)
--> (http://bugs.winehq.org/attachment.cgi?id=12065) [details]
HtmlHelp no #STRINGS patch
Apparently it is possible to have chm file without #STRINGS in it.
With your patch I can open the chm file and it gets correctly displayed. Only the navigation part on the left side is not shown.
I checked lots of the chm files I have and there is no file without #STRING in it.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #7 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-14 04:07:39 --- Is it possible to use the hh.exe from microsoft directly?
I was not able to get it working.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #8 from Tefnet developers developers@tefnet.pl 2008-04-14 04:50:15 --- (In reply to comment #6)
(In reply to comment #2)
Created an attachment (id=12065)
--> (http://bugs.winehq.org/attachment.cgi?id=12065) [details] [details]
HtmlHelp no #STRINGS patch
Apparently it is possible to have chm file without #STRINGS in it.
With your patch I can open the chm file and it gets correctly displayed. Only the navigation part on the left side is not shown.
I checked lots of the chm files I have and there is no file without #STRING in it.
Navigation part isn't shown in native Windows either because simply there is no navigation info embedded in this file.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #9 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-14 05:23:27 --- Created an attachment (id=12171) --> (http://bugs.winehq.org/attachment.cgi?id=12171) 3DI175.6.chm on native windows
Navigation part isn't shown in native Windows either because simply there is no navigation info embedded in this file.
hmm, that's weird, because I get a navigation part on native windows.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #10 from Tefnet developers developers@tefnet.pl 2008-04-14 05:47:10 --- (In reply to comment #9)
Created an attachment (id=12171)
--> (http://bugs.winehq.org/attachment.cgi?id=12171) [details]
3DI175.6.chm on native windows
Navigation part isn't shown in native Windows either because simply there is no navigation info embedded in this file.
hmm, that's weird, because I get a navigation part on native windows.
You mean "index", "suchen", "favoriten"? because in "inhalt" there is not much to see ;P
I don't know what you expect to have i those tabs, because it is only one page help.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #11 from Tefnet developers developers@tefnet.pl 2008-04-14 05:48:21 --- Created an attachment (id=12172) --> (http://bugs.winehq.org/attachment.cgi?id=12172) Windows htmlhelp viewer screenshot
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #12 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-14 06:19:08 ---
You mean "index", "suchen", "favoriten"? because in "inhalt" there is not much to see ;P
I don't know what you expect to have i those tabs, because it is only one page help.
Hehe, I mean this entry 3DI175.6 on the left side.
http://bugs.winehq.org/show_bug.cgi?id=12498
Hin-Tak Leung htl10@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|htl10@users.sourceforge.net |
--- Comment #13 from Hin-Tak Leung htl10@users.sourceforge.net 2008-04-14 14:04:17 --- (In reply to comment #5) <snipped>
I know that sometimes it's impossible to provide application name or url for application because of licensing problems etc. We actually working on one like that right now and it takes me a lot of time to report bug finding "free" application with similar bug which I can use instead of this, which I'm working on.
<snipped>
Even if an application is proprietary and only available through a license, information about the company which made it, etc is useful - they might just have free demo or other stuff available; and also, one of the wine developers might just have a licensed copy, whatever it is.
I am just very fed up - this information has been requested almost 10 times now. What's problem with just "naming" the application? And there has been no explanations, just seems to fall on deaf ears.
As is, for all practical purpose, the broken chm files are cooked up by this individual on his own computer and he is after one-on-one personal programming tuitions. I am sorry, I don't want to look at such problems.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #14 from Alexandre Julliard julliard@winehq.org 2008-04-14 14:57:33 --- (In reply to comment #13)
As is, for all practical purpose, the broken chm files are cooked up by this individual on his own computer and he is after one-on-one personal programming tuitions. I am sorry, I don't want to look at such problems.
Then don't look at it, just move on to the next bug and stop pestering that guy. There's clearly enough info in that bug to make progress, there's even a proposed patch already.
http://bugs.winehq.org/show_bug.cgi?id=12498
Dirk Mueller dirk.mueller@br-automation.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.br- | |automation.com/cps/rde/xchg/ | |br- | |productcatalogue/hs.xsl/prod | |ucts_5417_ENG_HTML.htm?sessi | |on_level_1=Software
--- Comment #15 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-15 00:58:02 ---
I am just very fed up - this information has been requested almost 10 times now.
not true!
What's problem with just "naming" the application? And there has been no explanations, just seems to fall on deaf ears.
That's no Problem, please see URL above. Name: Automation Studio Company: Bernecker + Rainer Industrie Elektronik Ges.m.b.H.
As is, for all practical purpose, the broken chm files are cooked up by this individual on his own computer and he is after one-on-one personal programming tuitions.
Interesting presumption...but you are absolutely wrong :-)
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #16 from Hin-Tak Leung htl10@users.sourceforge.net 2008-04-15 20:29:54 --- (In reply to comment #14) <snipped>
Then don't look at it, just move on to the next bug and stop pestering that guy. There's clearly enough info in that bug to make progress, there's even a proposed patch already.
This guy started pestering me first. See bug 11690 for background.
(In reply to comment #15)
I am just very fed up - this information has been requested almost 10 times now.
not true!
Please go back and count... you have only just filled the information in after about a dozen of private and public exchanges.
<snipped>
As is, for all practical purpose, the broken chm files are cooked up by this individual on his own computer and he is after one-on-one personal programming tuitions.
Interesting presumption...but you are absolutely wrong :-)
Could have fooled me, seeing the same "br-automation" in both the e-mail address and the URL...
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #17 from Austin English austinenglish@gmail.com 2008-04-15 20:53:23 --- Please people. Bugzilla is for bug reporting/debugging/patching, not personal bickering. I'm assuming you've all moved on past grade school, so if someone is annoying you/not helping, just ignore them or take it elsewhere, not here.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #18 from Hin-Tak Leung htl10@users.sourceforge.net 2008-04-15 23:51:48 --- It is a valid question to ask what documentation tools and processes were used to create those tricky and difficult-to-read chm files, since that seems to be a source of problems.
(Right from the beginning over a week ago, the original poster seems to have a collection of these problematic chm files. Those CHM files have just been admitted to be from his own organisation, if not his own making).
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #19 from Austin English austinenglish@gmail.com 2008-04-16 00:13:03 --- (In reply to comment #18)
It is a valid question to ask what documentation tools and processes were used to create those tricky and difficult-to-read chm files, since that seems to be a source of problems.
(Right from the beginning over a week ago, the original poster seems to have a collection of these problematic chm files. Those CHM files have just been admitted to be from his own organisation, if not his own making).
I agree that asking for information is valid, yes. But if all you're accomplishing is bickering, best to ignore it.
As for the problematic files, lots of windows apps are buggy. If windows can work with them, then we need to as well, even if they are more poorly made than the Star Wars prequels (Natalie Portman excluded).
http://bugs.winehq.org/show_bug.cgi?id=12498
Dirk Mueller dirk.mueller@br-automation.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|0.9.58. |0.9.59.
--- Comment #20 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-16 01:56:03 --- ok, I checked lots of chm files now and it looks like they get displayed correctly.
But I fear I cannot use wine and the buildin hh viewer. Let me explain...I want to be able to see the Documentation of "Automation Studio" on Linux. (I don't want to run the application)
This documentation consits of around 2800 chm files. In complete there are around 5400 files. The main file, that get's opened when you run automation studio on windows and open the help is a .col file. Inside some chm files there are links to other chm files.
I did not create this documents and I dont know how they are created. But I assume they are created with visual studio. (If this is important I can try to get this info)
It looks like the only option I have is trying to use microsoft chm viewer hh.exe on wine, right? But I am not able to get the original hh.exe running on wine. So my question is: Is this possible and if yes, how can I do this?
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #21 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-16 02:00:06 --- Created an attachment (id=12231) --> (http://bugs.winehq.org/attachment.cgi?id=12231) Automation Studio help opened on windows
http://bugs.winehq.org/show_bug.cgi?id=12498
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|0.9.59. |0.9.58.
--- Comment #22 from Lei Zhang thestig@google.com 2008-04-16 02:25:11 --- please leave the version field alone.
http://bugs.winehq.org/show_bug.cgi?id=12498
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|0.9.58. |0.9.59.
--- Comment #23 from Lei Zhang thestig@google.com 2008-04-16 02:25:49 --- Dang it, forgot the bug was reported during that time when 0.9.59 was not an option.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #24 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-16 02:30:04 --- (In reply to comment #23)
Dang it, forgot the bug was reported during that time when 0.9.59 was not an option.
Yes, I noticed that 0.9.59 is available now, so i changed / corrected it.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #25 from Tefnet developers developers@tefnet.pl 2008-04-16 03:36:11 --- (In reply to comment #20)
ok, I checked lots of chm files now and it looks like they get displayed correctly. It looks like the only option I have is trying to use microsoft chm viewer hh.exe on wine, right? But I am not able to get the original hh.exe running on wine. So my question is: Is this possible and if yes, how can I do this?
If you just want to view chm files in Linux you can use: 1. Kchmviewer (QT) http://www.kchmviewer.net/ 2. Gnochm (GTK) http://gnochm.sourceforge.net/ 3. Xchm http://xchm.sf.net
You can also use wine with native htmlhelp dlls (I'm not sure about licensing problems with that)
You probably need to find native files: hhctrl.ocx, urlmon.dll, itircl.dll, itss.dll, advpack.dll
First start with only hhctrl.ocx as native and then proceed if it still doesn't work.
But the best way to view chm files would be fix our implementation of htmlhelp :)
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #26 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-16 03:44:50 ---
If you just want to view chm files in Linux you can use:
- Kchmviewer (QT) http://www.kchmviewer.net/
- Gnochm (GTK) http://gnochm.sourceforge.net/
- Xchm http://xchm.sf.net
I checked:
- chmviewer 0.1 - kchmviewer 4.0 beta - Help Explorer 3.0 - xchm 1.14
none of them was able to open a collection file or resolve links.
You can also use wine with native htmlhelp dlls (I'm not sure about licensing problems with that)
You probably need to find native files: hhctrl.ocx, urlmon.dll, itircl.dll, itss.dll, advpack.dll
First start with only hhctrl.ocx as native and then proceed if it still doesn't work.
I will check this now, thanks.
But the best way to view chm files would be fix our implementation of htmlhelp :)
Yes sure that would be the best solution :-)
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #27 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-16 04:19:08 ---
You probably need to find native files: hhctrl.ocx, urlmon.dll, itircl.dll, itss.dll, advpack.dll
I used the files you mentioned and added shlwapi.dll, because of some errors there, but its still not working.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #28 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-16 04:30:54 --- Created an attachment (id=12235) --> (http://bugs.winehq.org/attachment.cgi?id=12235) native hh.exe and dlls log
native:
hh.exe, hhoctrl.ocx, urlmon.dll, itircl.dll, itss.dll, advpack.dll, shlwapi.dd
A window gets opened, but no content and its still the wine viewer.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #29 from Tefnet developers developers@tefnet.pl 2008-04-16 07:17:52 --- (In reply to comment #28)
Created an attachment (id=12235)
--> (http://bugs.winehq.org/attachment.cgi?id=12235) [details]
native hh.exe and dlls log
native:
hh.exe, hhoctrl.ocx, urlmon.dll, itircl.dll, itss.dll, advpack.dll, shlwapi.dd
A window gets opened, but no content and its still the wine viewer.
It looks like you're still using builtin dlls. Copy native dlls to .wine/drive_c/windows/system32/ and use winecfg to set those files as native.
For further questions write to wine-users@ because this has nothing to do with this bug.
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #30 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-16 07:30:49 ---
It looks like you're still using builtin dlls. Copy native dlls to .wine/drive_c/windows/system32/ and use winecfg to set those files as native.
I changed the setting wieth winecfg to native for all the dlls I copied.
For further questions write to wine-users@ because this has nothing to do with this bug.
Yes, I know :-)
http://bugs.winehq.org/show_bug.cgi?id=12498
--- Comment #31 from Tefnet developers developers@tefnet.pl 2008-04-16 08:49:33 --- (In reply to comment #30)
It looks like you're still using builtin dlls. Copy native dlls to .wine/drive_c/windows/system32/ and use winecfg to set those files as native.
I changed the setting wieth winecfg to native for all the dlls I copied.
With native hhctrl.ocx there would be no lines like:
trace:htmlhelp
For further questions write to wine-users@ because this has nothing to do with this bug.
Yes, I know :-)
I think you can close this bug now, patch is commited to GIT with id:
7a5e3d3c04c77cc9e3c8e7daca8ba096f47fee4e
http://bugs.winehq.org/show_bug.cgi?id=12498
Dirk Mueller dirk.mueller@br-automation.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #32 from Dirk Mueller dirk.mueller@br-automation.com 2008-04-16 08:56:54 --- see comment #31
http://bugs.winehq.org/show_bug.cgi?id=12498
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #33 from Alexandre Julliard julliard@winehq.org 2008-04-18 11:04:46 --- Closing bugs reported fixed in 0.9.60.