Engine ignores --fingerprint-profile when the path contains non-ASCII characters (Windows)
Environment: ShardX Launcher 2.0.1, engine Chromium 152.0.7977.65 build 2, Windows 11 x64 (10.0.26200). Windows user profile path contains a non-ASCII character (C:\Users\Ängelo ...).
Symptom: a profile launches normally but pages see the host hardware (real GPU renderer, hardwareConcurrency, deviceMemory) instead of the profile's fingerprint. No error anywhere; browserscan.net shows the real GPU.
Root cause (isolated): the engine fails to open fingerprint.json when its path contains a non-ASCII character and silently falls back to real values.
Reproduction (same chrome.exe, same fingerprint.json, only the path differs):
- Launcher default data root, so the launcher passes
--fingerprint-profile=C:\Users\Ängelo Athayde\AppData\Roaming\shardx-launcher\user-data\<id>\fingerprint.json→Runtime.evaluateonhttps://example.com: rendererRTX 5090(host), cores 8, memory 32. - Copy the same file to
C:\Temp\fp.jsonand launch manually:chrome.exe --fingerprint-profile=C:\Temp\fp.json --user-data-dir=C:\Temp\ud --remote-debugging-port=0→ rendererRTX 4060 Ti(profile), cores 6, memory 16.
Tested on a real https origin, not on chrome:// pages.
Workaround: move the data root to an ASCII-only path (Settings → Data root, e.g. C:\ShardX). --shardx-profile-icon still points into %APPDATA% (non-ASCII) and the per-profile window icon is affected the same way.
Suggested fixes:
- Engine: read the switch value as UTF-16 (
base::CommandLine::GetSwitchValuePath→FilePath) instead of a narrow string. - Launcher (independent mitigation): pass the 8.3 short path (
GetShortPathNameW) for--fingerprint-profileand--shardx-profile-iconon Windows, or fail loudly when the fingerprint is not applied.
Any Windows account whose username has an accent (very common outside en-US) is affected, and the failure is silent — the launcher reports success while every profile leaks the real hardware.
in v2.0.3