microsoft / microsoft/terminal

Is the version info binary language ID supposed to be 0?

Open
#15,927 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Build Issue-Bug Priority-3 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

WindowsTerminal.exe's version info resource has this block header (from devenv).

![image](https://github.com/microsoft/terminal/assets/61856645/17504e15-4503-40bc-9981-d449045ca705)

And it has this binary data in the translation entry (from devenv).

![image](https://github.com/microsoft/terminal/assets/61856645/400e0065-a340-496e-a243-1be189ef0067)

In particular the binary language identifier is 0x0000. That makes VerQueryValueW queries like this

`wsprintf(szQuery, L"\\StringFileInfo\\%04x%04x\\ProductVersion", lpTranslate[i].wLanguage, lpTranslate[i].wCodePage);`

fail when the language info comes from `VerQueryValueW(pData, L"\\VarFileInfo\\Translation", (LPVOID*) &lpTranslate, &ulen);`

because lpTranslate[i].wLanguage is 0.

My programming was based on the sample in the help for VerQueryValueW.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WindowsTerminal.exe version-info resource and the VerQueryValueW calls shown in the report. Determine whether the 0x0000 language identifier is expected and what resource or documentation change, if any, is required; done should include a maintainer-confirmed explanation and a reproducible result for the ProductVersion query.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.