https://bugs.winehq.org/show_bug.cgi?id=49653
Bug ID: 49653 Summary: Pattern Maker for Cross Stitch: blocked on using inches and could not display metric in Wine Product: Wine-staging Version: 5.14 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: ovi.sergiu@gmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: Mint
Hello! Linux Mint 20 x64 Cinnamon wine-5.14 (Staging)
I successfully installed Hobbyware Pattern Maker for Cross Stitch. Inside this program, there is this setting that appears in inches. I know this software for years and it does not have any setting to switch from metric to imperial and viceversa. In Windows, this software borrows Windows' settings from Locale / Language. I even opened a forum thread and even tho the software I mention is commercial, the FREE version (called Pattern Maker Viewer has the same problem regarding the inches information.
https://forum.winehq.org/viewtopic.php?p=128989&sid=42d1faadc31d59c28363...
https://bugs.winehq.org/show_bug.cgi?id=49653
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #1 from Vijay Kamuju infyquest@gmail.com --- Can you please attach the console log?
https://bugs.winehq.org/show_bug.cgi?id=49653
--- Comment #2 from Ovi Sergiu ovi.sergiu@gmail.com --- (In reply to Vijay Kamuju from comment #1)
Can you please attach the console log?
Hi, sure, but I did not manage to find the console log. Even searched on the Internet but no chance. Could you give a command or something? I find this ”cd ~/.wine/drive_c/Program Files/Pattern Maker for cross stitch/program_v4 wine pmaker.exe &> log.txt” but no results...
https://bugs.winehq.org/show_bug.cgi?id=49653
--- Comment #3 from Ovi Sergiu ovi.sergiu@gmail.com --- Created attachment 67891 --> https://bugs.winehq.org/attachment.cgi?id=67891 log
https://bugs.winehq.org/show_bug.cgi?id=49653
--- Comment #4 from Ovi Sergiu ovi.sergiu@gmail.com --- I put this in the Terminal:
cd '/home/oks/.wine/drive_c/Program Files/HobbyWare/Pattern Maker for cross stitch/program_v4'
After hitting Enter, I got this colored in blue: ~/.wine/drive_c/Program Files/HobbyWare/Pattern Maker for cross stitch/program_v4$[/code]
The I put this: WINEDEBUG=+nls wine pmaker.exe >> pmaker_nls.log 2>&1
And now in that folder I could find the `pamker_nls.log` file, which I attached.
https://bugs.winehq.org/show_bug.cgi?id=49653
jkfloris@dds.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jkfloris@dds.nl
--- Comment #5 from jkfloris@dds.nl --- Created attachment 67900 --> https://bugs.winehq.org/attachment.cgi?id=67900 Pattern Maker test file
A simple Pattern Maker test file
https://bugs.winehq.org/show_bug.cgi?id=49653
--- Comment #6 from jkfloris@dds.nl --- The free Pattern Viewer has the same issue: http://www.hobbyware.com/pm_downloads.htm
Open the sample file -> View -> Information The size is always in inches.
https://bugs.winehq.org/show_bug.cgi?id=49653
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #7 from joaopa jeremielapuree@yahoo.fr --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=49653
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Ever confirmed|0 |1 URL| |http://www.hobbyware.com/pm | |_downloads.htm Status|UNCONFIRMED |NEW CC| |dark.shadow4@web.de
--- Comment #8 from Fabian Maurer dark.shadow4@web.de --- Confirming. The program ignores the setting in the registry.
https://bugs.winehq.org/show_bug.cgi?id=49653
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Wine-staging |Wine Component|-unknown |-unknown Summary|Pattern Maker for Cross |Pattern Maker for Cross |Stitch: blocked on using |Stitch always displays |inches and could not |measurement in imperial |display metric in Wine |system
--- Comment #9 from Fabian Maurer dark.shadow4@web.de --- Not a wine-staging issue, moving to Wine.
https://bugs.winehq.org/show_bug.cgi?id=49653
--- Comment #10 from Fabian Maurer dark.shadow4@web.de --- Created attachment 67934 --> https://bugs.winehq.org/attachment.cgi?id=67934 WIP Patch
Attaching a WIP patch, that makes the program respect the iMeasure setting from the registry, and also the locale from LC_ALL.
Thanks for the bugreport and samples, you made debugging this pretty easy. Problem is, that GetPrivateProfileStringA/W also need to search the registry.
See msdn: https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getpri... (Paragraph "The profile functions use the following steps to locate initialization information")
I'll work on a proper implementation with tests soon, in the meantime you can use the WIP patch.
https://bugs.winehq.org/show_bug.cgi?id=49653
--- Comment #11 from Zebediah Figura z.figura12@gmail.com --- The basic infrastructure for registry mapping already exists; see the call to get_mapped_section_key() in the same function. What's probably missing is the relevant entries in the HKLM\Software\Microsoft\Windows NT\IniFileMapping key.
https://bugs.winehq.org/show_bug.cgi?id=49653
--- Comment #12 from Fabian Maurer dark.shadow4@web.de --- @Zebediah Uuh, yes. Makes it a lot easier, thanks for pointing that out! Somehow I didn't notice it's already a thing...
New patch: https://source.winehq.org/patches/data/190528
https://bugs.winehq.org/show_bug.cgi?id=49653
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |f3a38b88d66b27954b3cf4ced6a | |f923a9ada7ba9 Status|NEW |RESOLVED
--- Comment #13 from Fabian Maurer dark.shadow4@web.de --- Fixed as of https://source.winehq.org/git/wine.git/?a=commit;h=f3a38b88d66b27954b3cf4ced...
https://bugs.winehq.org/show_bug.cgi?id=49653
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |kernel32
https://bugs.winehq.org/show_bug.cgi?id=49653
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.15.