You are not logged in.

#1 2015-05-03 18:47:36

JonnyRobbie
Member
Registered: 2015-04-28
Posts: 170

[SOLVED] Locale, Konsole and Dolphin issues

I'm having a series of locale problems that might or might not be connected, but I'll describe them all in this post.
First, every time I start a terminal emu (I'm using KDE's Konsole), I get locale: Cannot set LC_ALL to default locale: No such file or directory before the prompt.

$ cat ~/.bashrc
#
# ~/.bashrc
#

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

alias ls='ls --color=auto'
#PS1='[\u@\h \W]\$ '
PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
archey3
export QT_QPA_PLATFORMTHEME=appmenu-qt5
source /usr/share/git/completion/git-prompt.sh

I have tried several times setting locale as per wiki page (uncommenting locale in locale.conf and running locale-gen) and several other threads, but no success.

$ grep "^[^#;]" /etc/locale.gen
en_US.UTF-8 UTF-8
$ cat /etc/locale.conf
LANG=en_US.UTF-8
$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_GB.UTF-8
LC_COLLATE=cs_CZ.UTF-8
LC_MONETARY=cs_CZ.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=cs_CZ.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
$ locale -a
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US.utf8
$ uname -roms
Linux 4.0.1-1-ARCH x86_64 GNU/Linux

The next issue that might or might not be related is I'm unable to properly work with filenames that contain unicode characters (like european accents or CJK characters etc).

I can create, ls and cd a dir as well as touch a file, but sometimes the characters display as questionmarks, while sometimes they display fine:

testdir$ ls
testdir$ mkdir složka
testdir$ ls
slo??ka
testdir$ cd složka
složka$ touch příklad.txt
složka$ ls -l
total 0
-rw-r--r-- 1 marek users 0 May  3 20:22 p????klad.txt

When I try to access it through Dolphin, I can browse it fine, but I cannot delete it:

http://i.imgur.com/lQo4VoG.png

but rm -rf složka works.

I don't know if these two issues have a common cause. I'm using Plasma 5 (if it helps)

Last edited by JonnyRobbie (2015-05-04 01:04:00)

Offline

#2 2015-05-04 00:12:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: [SOLVED] Locale, Konsole and Dolphin issues

Try running locale-gen again (as root, of course).

Offline

#3 2015-05-04 01:03:41

JonnyRobbie
Member
Registered: 2015-04-28
Posts: 170

Re: [SOLVED] Locale, Konsole and Dolphin issues

It was a locale problem after all. When I first installed arch, I've only uncommented en.US.UTF-8 in locale.gen. But then I played around with KDE which changed some locale, but relevant lines in locale.gen left commented. Uncommenting more lines in locale.gen, running sudo locale-gen and rebooting seems to have helped. Thanks

Offline

Board footer

Powered by FluxBB