You are not logged in.
Hi all i'm making a second topic because the probleme evolved.
Here is the probleme i'm currently in trouble with my unicode table, it's pretty annoying because it's ugly but i'm freench and i need accented characters in my texts ans i can't type them anymore.
Here is an example : as you can se i have accented characters instead of common utf8 symboles.
My UTF8 table doesn't work in term but it work in my i3bar :
As IT was asked before here are some of my outputs :
$ locale
LANG=
LC_CTYPE=
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
$ cat ~/.Xresources
URxvt*background: black
URxvt*foreground: white
URxvt*font: xft:DejaVu Sans Mono for Powerline
URxvt*scrollBar: false
URxvt*termName: rxvt-unicode-256color
URxvt*imLocale: en_US.UTF-8
URxvt*renderFont: true
$ cat /etc/locale.conf
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_COLLATE=C
$ grep -v '^#' /etc/locale.gen
en_US.UTF-8 UTF-8
Thanks for your help.
Last edited by Biboozz (2017-03-23 09:59:26)
Offline
The output of locale looks wrong, it should contain en_US.UTF-8. Did you run locale-gen after uncommenting your locale.gen?
Can you also post the output of...
localectl
Offline
Here you go
$ localectl
System Locale: LANG=en_US.UTF-8
LC_COLLATE=C
VC Keymap: azerty
X11 Layout: n/a
Offline
Let me guess: you are using fish?
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
I don't even know what this is...
Offline
the "friendly interactive shell" - what's the output of
echo $SHELL
env | grep -E '(LC|LOCALE)'
Online
here you go :
$ echo $SHELL
/bin/zsh
$ env | grep -E '(LC|LOCALE)'
LC_CTYPE=
Offline
Offline
And
locale -a
?
Online
I am using oh-my-zsh.
$ locale -a
C
POSIX
en_US.utf8
Offline
I am using oh-my-zsh.
Then that's the problem, you should get rid of it.
https://bbs.archlinux.org/viewtopic.php?id=222049
https://bbs.archlinux.org/viewtopic.php?id=221777
Offline
So i might need to remove the oh-my-zsh file and then reboot my system ?
I dis what you said and removed all OMY aliases in my zshrc but it did nothing
Last edited by Biboozz (2017-02-09 12:18:54)
Offline
Before removing oh-my-zsh I would suggest creating a new user with bash as that users shell and test if the output of `locale` is set correctly for that user.
Offline
$ useradd me -m
$ sudo -su me
$ locale
LANG=
LC_CTYPE=
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
Offline
https://bbs.archlinux.org/viewtopic.php … 5#p1689845
If that "fixes" it, file a bug there.
Online
$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
$ useradd me -m
$ sudo -su me
$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
$ exit
exit
$ export LANG=
$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
$ sudo -su me
$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
So using `sudo su` the LANG variable is inherited so a valid locale setting remains valid and an invalid one remains invalid.
Offline
It change nothing, event by going back to user log and logging as "me" the ouput is the same
Offline
Assuming user me was not using the zsh shell then whatever is unsetting $LANG is not in the home directory but is still sourced / executed even using a different shell.
Offline
Did you try to remove oh-my-zsh ...?
Online
I alredy tried it changed nothing.
Offline
I'm no expert, but I had a bunch of locale problems myself once, and if I remember correctly it was an error in capitalization or punctuation but yours seems correct. Perhaps you've already tried this, as I say I'm not expect, but you might want to start by running:
$ localectl list-locales
to make sure en_US.UTF-8 has been generated. If not, try locale-gen. If yes, you can try just forcing it to apply to the currently-running shell with either:
$ export LANG=en_US.UTF-8
or
$ LANG=en_US.UTF-8
I honestly forget which it is. I feel like I used the export one, but the Arch wiki doesn't seem to mention export in its examples. Perhaps it's optional. In any case, if you can apply it to the current shell, you know the problem lies elsewhere. Either way, if it still isn't working it's above my head unfortunately. These 2 steps isolated my problem the couple of times I had issues.
Offline
I think ther is a capitalization error because i have the following output :
$ localectl list-locales
en_US.utf8
but when i run your commands it change nothing.
Offline
"en_US.utf8" is equivalent. Here's mine on a working system:
$ echo $LANG
en_US.UTF-8
$ localectl list-locales
en_US.utf8
Offline
Does "$HOME/.config/locale.conf" exist? If so, what are its contents?
Also try "source /etc/profile.d/locale.sh" and then "locale".
Offline
I think ther is a capitalization error because i have the following output :
$ localectl list-locales en_US.utf8
but when i run your commands it change nothing.
I want to make sure I understand. If you run:
$ export LANG=en_US.UTF-8
and then run:
$ locale
the entry listed for LANG remains blank? If you try
$ echo $LANG
is that also blank? As I said, I'm not expert, but I think that should give someone here that knows what they're talking about a big clue. I mean...if you can't assign variables on your shell, seems to me something is really wrong.
As for the capitalization, I'm pretty sure my problem was that I copied the output from list-locales. So I tried to set LANG to en_US.utf8 which did nothing, but setting it to en_US.UTF-8 worked. rdeckard obviously knows more about it so if he says that should still work I'd believe him, but I think the locale name may be different from what gets assigned the variable. But it was months ago and I'm pretty fuzzy on the details.
Offline