On Tue, Mar 13, 2012 at 1:22 PM, Matteo Bruni wrote:
That is bug http://bugs.winehq.org/show_bug.cgi?id=24614. My shot at it was http://www.winehq.org/pipermail/wine-patches/2011-February/098609.html. You can see that my approach was essentially what you are suggesting. Still, that's not a very nice thing to do probably (and indeed my patch wasn't accepted at the time ;). Rereading it now, I notice that the patch also contains some wpp cleanup which should have been in separate patches, but I don't think that it was the reason of the reject... Dan tried a slightly different solution a while later, but still no dice.
I'll do a better search before posting to the mailing list next time. Actually I found this bug in irrEdit CooperCube.
I'll think about it again as soon as I'll get some time. If you get any idea, I'd like to hear it (or, writing a good fix would be even better ...)
In the attachment is my fix. It won't harm widl nor wrc. However, I found out that Wine's wrc isn't compatible with Microsoft Windows Resource Compiler. In the second attachment there is an example of a file, which RC.exe compiles without even issuing warning, and wrc fails to compile it with "Unterminated string" error message. Anyway wpp will preprocess this file correctly, which can be checked by running wrc with -E option. If it's an issue, it should be fixed in wrc parser.