Iām having the same kind of issue as @a4z, but I use XFCE rather than KDE, so canāt try his/her āregional settingsā fix (and canāt find anything similar in XFCEās Settings). Can anyone help with this please?
Iām getting locale-related errors from various programs, such as:
[kgpg]
Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
[k3b]
System locale charset is ANSI_X3.4-1968
Your system's locale charset (i.e. the charset used to encode filenames) is set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally. Most likely the locale is not set at all. An invalid setting will result in problems when creating data projects.
Solution: To properly set the locale charset make sure the LC_* environment variables are set. Normally the distribution setup tools take care of this.
Iām using Leap 15.0, which was updated from a working 42.2, via 42.3 (didnāt check language settings in that), using the DVD followed by an online update, where the only 3rd party repo I installed was Packman. My primary language setting in YaST is British English (Detailed setting: en_GB), with Japanese installed as a secondary language. I had also previously set Japanese to primary, then reverted to British English. When logging in to XFCE, the top-right of the login screen shows correctly as āen_GB.utf8 jpā (with jp being for my Japanese keyboard).
With this set-up I encounter the above errors, and all Japanese filenames within xfce4-terminal display as question marks. xterm does likewise. However, Thunar displays them correctly.
Running ālocaleā gives:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB.utf8
LC_CTYPE=en_GB.UTF-8,LANG=en_GB.UTF-8
LC_NUMERIC="en_GB.utf8"
LC_TIME="en_GB.utf8"
LC_COLLATE="en_GB.utf8"
LC_MONETARY="en_GB.utf8"
LC_MESSAGES="en_GB.utf8"
LC_PAPER="en_GB.utf8"
LC_NAME="en_GB.utf8"
LC_ADDRESS="en_GB.utf8"
LC_TELEPHONE="en_GB.utf8"
LC_MEASUREMENT="en_GB.utf8"
LC_IDENTIFICATION="en_GB.utf8"
LC_ALL=
*I notice thereās a casing and hyphen mismatch between en_GB.UTF-8 in LC_CTYPE and en_GB.utf8 in the other entries. Is this important? Iāve tried changing YaSTās /etc/sysconfig Editor ā System ā Environment ā Language ā RC_LANG and RC_LC_ALL to āen_GB.UTF-8ā and āen_GB.utf8ā, but the problem still occurs, even after re-logging in. FYI, the entries are still now present in YaST but, when running the locale command, LC_ALL= is always empty.
I also tried switching the primary language to en_US in YaST, but am still encountering the same problem.
/etc/locale.conf contains:
LC_CTYPE=en_GB.UTF-8,LANG=en_GB.UTF-8
And there was nothing set in ~/.profile, so I added the following based on @dcurtisfraās advice and the commented out lines already in the file:
export LANG=en_GB.UTF-8
Running locale -a shows that the following locales are available (among others):
en_GB
en_GB.iso885915
en_GB.utf8
...
ja_JP.eucjp
ja_JP.shiftjisx0213
ja_JP.sjis
ja_JP.utf8
āzypper verify --detailsā produces no errors, giving āDependencies of all installed packages are satisfiedā.
ārpm --verify --allā gives me various āmissingā entries, but Iām not sure whether I need to/how to fix everything. For example, there are various application-specific things in /opt/, and old kde3-specific ones that donāt seem relevant. I can post the whole thing (3415 lines) if needed. Please let me know.
ārpmconfigcheckā gave a variety of conflicts, which Iāve now fixed. It originally also gave the below warning, but nothing is given now that Iāve fixed the problems:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "en_GB.UTF-8,LANG=en_GB.UTF-8",
LANG = "en_GB.utf8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.utf8").
...
If anyone could help with this Iād very much appreciate it, as I need to use both English and Japanese on this machine.