Skip to content

Chinese character displayed as ??? when environement var LANG not properly set #18433

@hyh19962008

Description

@hyh19962008

Operating System

Ubuntu 18.04

OpenRCT2 build

v0.4.2

Describe the issue

Hi, my machine has set the environment variable LANG to zh_CN.UTF-8 system-wide(as most Chinese users do). And with that env var set, my game display ??? characters when running with the language Chinese(Simplified).
However, if LANG is set to en_US.UTF-8, the ??? characters are gone and everything displays normally(meaning that I have the required font installed). This is very against the intuitive, because most of the time we have to set the LANG to zh_CN.UTF-8 to tell programs to display in Chinese rather than doing the other way.

Area(s) with issue?

No response

Steps to reproduce

  1. export LANG=zh_CN.UTF-8
  2. ./openrct2
  3. select language Chinese(Simplified) in game

Attachments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething went wrong.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions