I checked the source code programs/winecfg/appdefaults.c in function set_winver_from_string() and it looks like it should have said "match with winxp', but I don't see that trace message, and I don't see the version set from winecfg GUI.
What am I doing wrong?
I use wine-staging 6.0 from Fedora 33, and LANG is en_US.utf8. I tried LANG=C and that didn't work either. I don't know how else to debug this.
After some more research it appears that winecfg doesn't fully work on a 64-bit prefix. (Debian Sid, Wine 6.0)
In a 32-bit prefix the /v, /v version and /? options work as expected.
In a 64-bit prefix I can set a version with /v version, but the /v and /? options don't give any output.
floris@Jessica:~$ WINEPREFIX=/home/floris/wine-prefix/winecfg64/ WINEDLLOVERRIDES=winemenubuilder.exe=d /opt/wine-stable/bin/wine winecfg /?
0034:err:module:process_init L"C:\\windows\\system32\\winemenubuilder.exe" not found
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
floris@Jessica:~$ WINEPREFIX=/home/floris/wine-prefix/winecfg64/ WINEDLLOVERRIDES=winemenubuilder.exe=d /opt/wine-stable/bin/wine winecfg /? | cat
0034:err:module:process_init L"C:\\windows\\system32\\winemenubuilder.exe" not found
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
Usage: winecfg [options]
Options:
[no option] Launch the graphical version of this program.
/v Display the current global Windows version.
/v version Set global Windows version to 'version'.
/? Display this information and exit.
Valid versions for 'version':
win10 Windows 10
win81 Windows 8.1
win8 Windows 8
win2008r2 Windows 2008 R2
win7 Windows 7
win2008 Windows 2008
vista Windows Vista
win2003 Windows 2003
winxp64 Windows XP