garrysmod-issues icon indicating copy to clipboard operation
garrysmod-issues copied to clipboard

Linux chromium branch SetLocale failed

Open ds58 opened this issue 3 years ago • 2 comments

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

  1. Install Fedora 33 Workstation
  2. Install Steam
  3. Install Gmod and use chromium x86-64 branch
  4. Observe console output upon launching Gmod

ds58 avatar Apr 03 '21 01:04 ds58

Related/duplicate of https://github.com/Facepunch/garrysmod-issues/issues/4464

robotboy655 avatar Apr 05 '21 09:04 robotboy655

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.

purplebar0 avatar Jul 27 '22 15:07 purplebar0

still an issue in 2023, god the linux branch is so broken.

Zeppperoni avatar Feb 02 '23 00:02 Zeppperoni