garrysmod-issues
garrysmod-issues copied to clipboard
Linux chromium branch SetLocale failed
Description
When launching Gmod on Linux (chromium x86-64 branch, April 2021 hotfix), the following error displays in console:
SetLocale('en_US.UTF-8') failed. Using 'LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=en_US.UTF-8;LC_ADDRESS=en_US.UTF-8;LC_TELEPHONE=en_US.UTF-8;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=en_US.UTF-8'.
You may have limited glyph support.
Please install 'en_US.UTF-8' locale.
This error does not appear on the main Gmod branch.
I believe this correlates with keyboard input not being correctly registered in CEF windows. In my chromium.log
, I see [0402/180351.434844:WARNING:keyboard_code_conversion_x.cc(1441)] Unknown keycode:0
whenever I try to press non-alphanum keys. Numbers work fine, uppercase letters (holding shift) work fine, lowercase letters do not work.
Environment
Fedora 33 Workstation
Kernel: 5.11.10-200.fc33.x86_64
Output of locale
:
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
Output of localectl status
:
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: us
How to reproduce
- Install Fedora 33 Workstation
- Install Steam
- Install Gmod and use chromium x86-64 branch
- Observe console output upon launching Gmod
Related/duplicate of https://github.com/Facepunch/garrysmod-issues/issues/4464
It doesn't seem to be. Even with GModCEFCodecFix applied, I get this error, so despite installing a modified font with WenQuanYi Zen Hei family name as per CSS/TF2 fix (replacing hard coded fallback font), many characters don't render.
still an issue in 2023, god the linux branch is so broken.