You are not logged in.

#1 2020-12-26 17:06:25

drilichili
Member
From: Germany
Registered: 2020-12-26
Posts: 5

[SOLVED] KDE Plasma issues with locale settings (en_DE)

Hello everbody and welcome to my first topic!

as you've probably already stumbled upon, installing Minecraft is for some of us an actual problem.
to cut it short and give some information, I'll get to the point:

After installing minecraft-launcher from the AUR (minecraft), I've ran into a problem when actually running the launcher.

How I found the problem?
I installed it as usual, pressed CTRL to open the search menu and typed in Minecraft. Clicked on it and...
... nothing happend! It was loading for a sec (no client pop-up or something, it just showed the little minecraft icon in the icon bar with the other programs) and aborted immediately.

then I simply used the terminal command to execute it and became the following message:

 [user@usermacbook minecraft-launcher]$ minecraft-launcher 
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
Aborted (core dumped)

and then I knew that something was wrong.
_____________________________________________________________
first try:
according to the wiki-page of Minecraft, I've tried the normal Troubleshooting steps first.
you'll find a "solution" which could fit to my problem in the "Client or Server does not start" paragraph.

I've literally tried every Java version.. changing the archlinux-java default every time (and using the "archlinux-java fix" command).. starting minecraft-launcher..
everytime --> same result.

btw:

[drili@drilimac etc]$ archlinux-java status
Available Java environments:
  java-14-openjdk
  java-8-openjdk (default)

(using java-8 since it should be more "stable" according to the wiki)
so I started believing that java might actually work fine and the problem is elsewhere.
_____________________________________________________________
second try:
searching for a solution, I've read through several threads and came across the comments on this page.
On Page 4 of the comments, there is a User named @Bramken who had the same problem. Nobody answered to it tho.

after some time, I've found this topic right here.
surprisingly, some of them found a "fix" which I really can't relate to at all.
with "fix" i'm referring to the following reply:

MrMugame wrote:

Thanks a lot!!

 LC_ALL=C minecraft-launcher 

this fixed the problem for me

after reading through the Locale Page on our beautiful ArchWiki, I sadly still didn't understand the link between the minecraft problem and generating Locales (I already set them up, using de_DE.UTF-8).

_____________________________________________________________

hopefully you are aware of my problem now and for yout to reply to it I'm obviously going to show you my actual results to understand the mess I'm doing:

Command:

locale

Output:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_DE.UTF-8
LC_CTYPE="en_DE.UTF-8"
LC_NUMERIC="en_DE.UTF-8"
LC_TIME="en_DE.UTF-8"
LC_COLLATE="en_DE.UTF-8"
LC_MONETARY="en_DE.UTF-8"
LC_MESSAGES="en_DE.UTF-8"
LC_PAPER="en_DE.UTF-8"
LC_NAME="en_DE.UTF-8"
LC_ADDRESS="en_DE.UTF-8"
LC_TELEPHONE="en_DE.UTF-8"
LC_MEASUREMENT="en_DE.UTF-8"
LC_IDENTIFICATION="en_DE.UTF-8"
LC_ALL=

Command:

locale -a

Output:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
de_DE.utf8

Command:

cat /etc/locale.conf

Output:

LANG=de_DE.UTF-8

_____________________________________________________________

I appreciate every help and everyone who actually read this post carefully, I hope I didn't waste your time!
hopefully we can solve this problem once and for all.

greetings from Germany! (hence the bad english..)

Last edited by drilichili (2020-12-29 17:53:44)


hi there! yes you're right - i'm a complete newbie to Linux and I thought "hey why shouldn't I dive right into Arch Linux?" and here I am!

Offline

#2 2020-12-26 17:29:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,655

Re: [SOLVED] KDE Plasma issues with locale settings (en_DE)

en_DE is not a valid locale. Your locale conf looks okay, something else is setting that, check your shell session scripts (... .profile and .bashrc/bash_profile and locale settings for your DE if applicable

Last edited by V1del (2020-12-26 17:30:40)

Offline

#3 2020-12-26 17:49:56

drilichili
Member
From: Germany
Registered: 2020-12-26
Posts: 5

Re: [SOLVED] KDE Plasma issues with locale settings (en_DE)

first of all thanks for the reply!

V1del wrote:

en_DE is not a valid locale. Your locale conf looks okay, something else is setting that, check your shell session scripts (... .profile and .bashrc/bash_profile and locale settings for your DE if applicable

after reading through an article about .bashrc and .bash_profile I still didn't quiet get it since there is no line where I declare a locale or something.

but maybe this will get us some help ->
Command:

ls -la

Output:

total 116
drwx------ 22 drili drili 4096 Dec 26 16:27 .
drwxr-xr-x  3 root  root  4096 Dec 25 20:07 ..
-rw-------  1 drili drili   53 Dec 26 14:55 .Xauthority
-rw-------  1 drili drili 4529 Dec 26 16:27 .bash_history
-rw-r--r--  1 drili drili   21 Dec 20 19:44 .bash_logout
-rw-r--r--  1 drili drili   57 Dec 20 19:44 .bash_profile
-rw-r--r--  1 drili drili  141 Dec 20 19:44 .bashrc
drwxr-xr-x 25 drili drili 4096 Dec 26 18:12 .cache
drwx------ 26 drili drili 4096 Dec 26 18:25 .config
drwx------  2 drili drili 4096 Dec 25 21:57 .gnupg
-rw-r--r--  1 drili drili  268 Dec 26 14:55 .gtkrc-2.0
drwxr-xr-x  3 drili drili 4096 Dec 25 20:21 .kde4
drwxr-xr-x  3 drili drili 4096 Dec 25 20:21 .local
drwxr-xr-x  2 drili drili 4096 Dec 26 14:30 .minecraft
drwx------  5 drili drili 4096 Dec 25 21:33 .mozilla
drwx------  3 drili drili 4096 Dec 25 20:44 .pki
drwxr-xr-x  3 drili drili 4096 Dec 25 21:59 .vscode-oss
drwxr-xr-x  2 drili drili 4096 Dec 26 16:23 Desktop
drwxr-xr-x  5 drili drili 4096 Dec 26 10:32 Documents
drwxr-xr-x  3 drili drili 4096 Dec 26 10:32 Downloads
drwxr-xr-x  2 drili drili 4096 Dec 25 20:10 Music
drwxr-xr-x  2 drili drili 4096 Dec 25 20:10 Pictures
drwxr-xr-x  2 drili drili 4096 Dec 25 20:10 Public
drwxr-xr-x  2 drili drili 4096 Dec 25 20:10 Templates
drwxr-xr-x  2 drili drili 4096 Dec 25 20:10 Videos
drwxr-xr-x  5 drili drili 4096 Dec 26 15:57 minecraft-launcher
drwxr-xr-x  5 drili drili 4096 Dec 26 15:42 pamac-aur
drwxr-xr-x  5 drili drili 4096 Dec 26 15:15 yay

Command:

cat .bash_profile

Output:

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

Command:

cat .bashrc

Output:

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

hi there! yes you're right - i'm a complete newbie to Linux and I thought "hey why shouldn't I dive right into Arch Linux?" and here I am!

Offline

#4 2020-12-26 17:57:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,655

Re: [SOLVED] KDE Plasma issues with locale settings (en_DE)

Which is good, you shouldn't do that. What DE are you using? They often have their own locale settings and potentially something is misconfigured here?

Offline

#5 2020-12-26 18:05:14

drilichili
Member
From: Germany
Registered: 2020-12-26
Posts: 5

Re: [SOLVED] KDE Plasma issues with locale settings (en_DE)

Command:

neofetch

Output:

[root@drilimac drili]# neofetch
                   -`                    drili@drilimac 
                  .o+`                   -------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: MacBookPro11,1 1.0 
               `+oooooo:                 Kernel: 5.9.14-arch1-1 
               -+oooooo+:                Uptime: 2 mins 
             `/:-:++oooo+:               Packages: 1094 (pacman) 
            `/++++/+++++++:              Shell: bash 5.1.4 
           `/++++++++++++++:             Resolution: 1680x1050 
          `/+++ooooooooooooo/`           DE: Plasma 5.20.4 
         ./ooosssso++osssssso+`          WM: KWin 
        .oossssso-````/ossssss+`         Theme: Breeze [GTK2], Adwaita [GTK3] 
       -osssssso.      :ssssssso.        Icons: Papirus [GTK2], Adwaita [GTK3] 
      :osssssss/        osssso+++.       Terminal: konsole 
     /ossssssss/        +ssssooo/-       CPU: Intel i7-4558U (4) @ 3.300GHz 
   `/ossssso+/:-        -:/+osssso+-     GPU: Intel Haswell-ULT 
  `+sso+:-`                 `.-/+oso:    Memory: 1251MiB / 7866MiB 
 `++:.                           `-/+/
 .`                                 `/                           
                                                                 

EDIT:

I found a topic which might help my issue : Locale issue after 5.18 upgrade , navigated to the plasma locale settings and changed it with nano (as root).
Command:

cat .config/plasma-localerc

Output:

[Formats]
LANG=de_DE.UTF-8

[Translations]
LANGUAGE=de:en_US

afterwards I ran locale-gen again.
output is still the same tho..

Command:

locale

Output:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_DE.UTF-8
LC_CTYPE="en_DE.UTF-8"
LC_NUMERIC="en_DE.UTF-8"
LC_TIME="en_DE.UTF-8"
LC_COLLATE="en_DE.UTF-8"
LC_MONETARY="en_DE.UTF-8"
LC_MESSAGES="en_DE.UTF-8"
LC_PAPER="en_DE.UTF-8"
LC_NAME="en_DE.UTF-8"
LC_ADDRESS="en_DE.UTF-8"
LC_TELEPHONE="en_DE.UTF-8"
LC_MEASUREMENT="en_DE.UTF-8"
LC_IDENTIFICATION="en_DE.UTF-8"
LC_ALL=

Last edited by drilichili (2020-12-26 18:14:07)


hi there! yes you're right - i'm a complete newbie to Linux and I thought "hey why shouldn't I dive right into Arch Linux?" and here I am!

Offline

#6 2020-12-26 18:10:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,655

Re: [SOLVED] KDE Plasma issues with locale settings (en_DE)

Plasma can have a tendency for that, check the locale settings in systemsettings make sure that german is properly selected, potentially for regional settings as well.

Offline

#7 2020-12-26 18:21:28

drilichili
Member
From: Germany
Registered: 2020-12-26
Posts: 5

Re: [SOLVED] KDE Plasma issues with locale settings (en_DE)

[SOLVED]

@V1del Sir, you deserve an award.

I changed every single option in the KDE System Settings (GUI) which mentioned any language to german.

rebooted and now it works!
locale output is de_DE

maybe this seems like a little fix to you but damn this explains a lot to me and I'm really thankful for that!
_______________________________________________________

please mark this topic as solved.

Cheers!! much love.

Last edited by drilichili (2020-12-26 18:23:04)


hi there! yes you're right - i'm a complete newbie to Linux and I thought "hey why shouldn't I dive right into Arch Linux?" and here I am!

Offline

#8 2020-12-26 19:28:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,655

Re: [SOLVED] KDE Plasma issues with locale settings (en_DE)

Glad to hear, it's a bit weird that Plasma even allows such technically illegal combinations to be set, though this is as far as I understand a weirdness in how Qt presents/reads locales when queried for them (... might be a cross platform side effect)

You should mark it as [SOLVED] by editing the title in the first post of the thread: https://wiki.archlinux.org/index.php/Co … ow_to_post (might have to shorten a little, maybe take the opportunity to add the actual cause into the title)

Offline

Board footer

Powered by FluxBB