Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] locale/language issues (Read 1102 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] locale/language issues

Problems I have:
No.1

When I'm in a directory with an umlaut (e.g. aä), then java fails:
Code: [Select]
$ basename $PWD

$ cat Test.java
public class Test {
  public static void main(String[] args) { System.out.println("a"); }
}
$ javac -cp . Test.java && java Test
Error: Could not find or load main class Test
When I move that file to the home directory, it works:
Code: [Select]
$ cp Test.java ~
$ cd ~
$ javac -cp . Test.java && java Test
a

No.2
When I'm using ranger as  terminal file manager, the "aä" folder doesnt get displayed correctly.

Details
I'm using s6 as init system and sway as WM.
Code: [Select]
$ cat /etc/locale.conf
LANG=de_DE.utf8
$ locale -a
C
POSIX
de_DE.utf8
en_US.utf8
$ locale
LANG=en_US.utf8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
And in my .bashrc I have:
Code: [Select]
export LC_ALL=C
export LANG=en_US.utf8
export LANGUAGE=en_US:de_DE

I wonder what I'm doing wrong.

Re: locale/language issues

Reply #1
Solved it by myself (thanks for anyone who looked at this). Seems like using
Code: [Select]
export LC_ALL=C
in .bashrc caused all these problems.


 

Re: [SOLVED] locale/language issues

Reply #3
I see, thanks. Changed it to UTF-8 now.  :)