[PATCH] cmd: Match the Windows ver output.

Hermès BÉLUSCA-MAÏTO hermes.belusca at sfr.fr
Wed Jan 27 14:45:26 CST 2021


Hello,
Do you have any program name in mind that does that parsing?

Regards,
Hermès Bélusca

-----Original Message-----
From: wine-devel <wine-devel-bounces at winehq.org> On Behalf Of Francois Gouget
Sent: 27. siječnja 2021. 21:38
To: Wine Devel <wine-devel at winehq.org>
Subject: [PATCH] cmd: Match the Windows ver output.

Some programs parse this string to get the Windows version!

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---

cmd seems to use the same string for "cmd /c ver" and the first line of "cmd /?".

On Windows 10 neither string is translated in the locales I checked (French, Japanese, Chinese, Hebrew). That does not prove it's never translated but it does look like it isn't.

So maybe that justifies moving the string out of the resource file so it does not appear in the PO files. If so I can resubmit a modified version.


 programs/cmd/cmd.rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/cmd/cmd.rc b/programs/cmd/cmd.rc index fa604a6db56..04401dc4886 100644
--- a/programs/cmd/cmd.rc
+++ b/programs/cmd/cmd.rc
@@ -393,7 +393,7 @@ Enter HELP <command> for further information on any of the above commands.\n"
   WCMD_NOPATH, "PATH not found\n"
   WCMD_ANYKEY,"Press any key to continue... "
   WCMD_CONSTITLE,"Wine Command Prompt"
-  WCMD_VERSION,"Microsoft Windows %1!S!\n"
+  WCMD_VERSION,"Microsoft Windows [Version %1!S!]\n"
   WCMD_MOREPROMPT, "More? "
   WCMD_LINETOOLONG, "The input line is too long.\n"
   WCMD_VOLUMELABEL, "Volume in drive %1!c! is %2\n"
--
2.20.1





More information about the wine-devel mailing list