Skip to content

BUG: In process explorer if user has UTF-8 / cyrrilic symbols in name it will be displayed by non displayable symbols ("question mark" symbol) #219183

Closed

Description

Does this issue occur when all extensions are disabled?: Yes

Version: 1.106.0 (user setup)
Commit: ac4cbdf
OS: Windows_NT x64 10

Steps to Reproduce:

  1. Open vs code process explorer
  2. Hover mouse cursor over any process (ex. gpu-process)
  3. User with UTF-8/Cyrillic symbols in name is displayed incorrectly (will be displayed by non displayable symbols "question mark" symbol)

зображення

Activity

  1. added
    bug
    workbench-diagnostics
    on Dec 18, 2024
  2. added this to the Backlog milestone on Dec 18, 2024
  3. added
    help wanted
    on Dec 18, 2024
  4. changed the title [-]BUG: In process explorer if user has cyrrilic symbols in name it will be displayed by non displayable symbols ("question mark" symbol)[/-] [+]BUG: In process explorer if user has UTF-8 / cyrrilic symbols in name it will be displayed by non displayable symbols ("question mark" symbol)[/+] on Nov 13, 2025
  5. psnet commented on Nov 13, 2025

    @psnet
    Author

    This bug is in package @vscode/windows-process-tree used by vs code:

    https://github.com/microsoft/vscode-windows-process-tree

    which is used inside of vs code here:

    (import('@vscode/windows-process-tree')).then(windowsProcessTree => {
    windowsProcessTree.getProcessList(rootPid, (processList) => {

    @vscode/windows-process-tree

    Bug is in method getProcessList of package @vscode/windows-process-tree which returns array of objects with key commandLine which is not correctly handled for multibyte encoding:

    so in key commandLine instead of multibyte characters are � symbols.


    Daniel Imms (@Tyriar) please elevate this bug to related teams

  6. tangyuan0821 commented on Jun 27, 2026

    @tangyuan0821

    Bug is in vscode-windows-process-tree/src/process_commandline.cc. GetProcessCommandLine() passes CP_ACP to WideCharToMultiByte(). Needs CP_UTF8. Cyrillic characters become ?.
    Fix: CP_ACP to CP_UTF8. Also microsoft/vscode-windows-process-tree#76.
    Can I submit a PR?

  7. arham766 commented on Jul 4, 2026

    @arham766
    Contributor

    I'd like to pick this up. The root cause was fixed upstream in @vscode/windows-process-tree 0.8.0 (microsoft/vscode-windows-process-tree#87 changed the WideCharToMultiByte calls in process_commandline.cc from CP_ACP to CP_UTF8; the module's #76 is closed), but VS Code still pins ^0.7.0 with the lockfile resolving exactly 0.7.0, so the fix never reached the Process Explorer.

    Verified both versions side by side on Windows 11 against a process spawned with Cyrillic in its command line:

    v0.7.0:  node.exe -e "setTimeout(()=>{}, 20000)" -- ??????-???-?????????
    v0.8.0:  node.exe -e "setTimeout(()=>{}, 20000)" -- Привет-мир-Кириллица
    

    Preparing a PR that bumps the dependency to ^0.8.0 in package.json and remote/package.json with regenerated lockfiles.

  8. added a commit that references this issue on Jul 13, 2026
    4175bab
  9. added a commit that references this issue on Jul 13, 2026
    94aab9d
  10. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jul 13, 2026
  11. added
    author-verification-requested
    on Jul 20, 2026
  12. vs-code-engineering commented on Jul 20, 2026

    @vs-code-engineering
    Contributor

    This bug has been fixed in the latest release of VS Code Insiders!

    Serhii Pustovit (@psnet), you can help us out by commenting /verified if things are now working as expected.

    If things still don't seem right, please ensure you're on version e586b8a of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

    Happy Coding!

  13. psnet commented on Jul 24, 2026

    @psnet
    Author

    /verified

  14. added
    verified
    and removed
    author-verification-requested
    on Jul 24, 2026
  15. psnet commented on Jul 24, 2026

    @psnet
    Author

    Now vscode's process explorer shows correct UTF-8 symbols in its processes path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bughelp wantedinsiders-releasedverifiedworkbench-diagnostics

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions