You are not logged in.

#1 2017-02-06 16:42:02

Biboozz
Member
Registered: 2016-10-18
Posts: 64

[CLOSED] Broken Unicode

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 : 428128DeepinScreenshot20170206172643.png 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 : 414134DeepinScreenshot20170206174031.png

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. smile

Last edited by Biboozz (2017-03-23 09:59:26)

Offline

#2 2017-02-06 18:47:46

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [CLOSED] Broken Unicode

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

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-02-06 19:35:16

Biboozz
Member
Registered: 2016-10-18
Posts: 64

Re: [CLOSED] Broken Unicode

Here you go

$ localectl
   System Locale: LANG=en_US.UTF-8
                  LC_COLLATE=C
       VC Keymap: azerty
      X11 Layout: n/a

Offline

#4 2017-02-06 19:41:00

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [CLOSED] Broken Unicode

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

#5 2017-02-06 21:09:36

Biboozz
Member
Registered: 2016-10-18
Posts: 64

Re: [CLOSED] Broken Unicode

I don't even know what this is...

Offline

#6 2017-02-07 10:47:21

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [CLOSED] Broken Unicode

the "friendly interactive shell" - what's the output of

echo $SHELL
env | grep -E '(LC|LOCALE)'

Offline

#7 2017-02-08 14:18:02

Biboozz
Member
Registered: 2016-10-18
Posts: 64

Re: [CLOSED] Broken Unicode

here you go :

$ echo $SHELL
/bin/zsh
$ env | grep -E '(LC|LOCALE)'
LC_CTYPE=

Offline

#8 2017-02-08 14:41:53

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [CLOSED] Broken Unicode

Are you using oh-my-zsh?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-02-08 16:26:05

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [CLOSED] Broken Unicode

And 

locale -a

?

Offline

#10 2017-02-08 21:13:40

Biboozz
Member
Registered: 2016-10-18
Posts: 64

Re: [CLOSED] Broken Unicode

I am using oh-my-zsh.

$ locale -a
C
POSIX
en_US.utf8

Offline

#11 2017-02-08 23:12:05

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [CLOSED] Broken Unicode

Biboozz wrote:

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


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#12 2017-02-09 12:12:04

Biboozz
Member
Registered: 2016-10-18
Posts: 64

Re: [CLOSED] Broken Unicode

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

#13 2017-02-09 13:06:22

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: [CLOSED] Broken Unicode

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

#14 2017-02-12 13:33:47

Biboozz
Member
Registered: 2016-10-18
Posts: 64

Re: [CLOSED] Broken Unicode

$ 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

#15 2017-02-12 14:52:14

seth
Member
Registered: 2012-09-03
Posts: 49,981

Offline

#16 2017-02-12 16:37:08

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: [CLOSED] Broken Unicode

$ 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

#17 2017-02-16 13:15:41

Biboozz
Member
Registered: 2016-10-18
Posts: 64

Re: [CLOSED] Broken Unicode

It change nothing, event by going back to user log and logging as "me" the ouput is the same

Offline

#18 2017-02-16 13:34:26

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: [CLOSED] Broken Unicode

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

#19 2017-02-16 15:55:05

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: [CLOSED] Broken Unicode

Did you try to remove oh-my-zsh ...?

Offline

#20 2017-02-22 00:24:29

Biboozz
Member
Registered: 2016-10-18
Posts: 64

Re: [CLOSED] Broken Unicode

I alredy tried it changed nothing.

Offline

#21 2017-02-22 03:23:32

dtjohnst
Member
Registered: 2007-03-01
Posts: 85

Re: [CLOSED] Broken Unicode

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

#22 2017-02-22 15:48:56

Biboozz
Member
Registered: 2016-10-18
Posts: 64

Re: [CLOSED] Broken Unicode

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

#23 2017-02-22 16:48:25

rdeckard
Wiki Maintainer
Registered: 2015-01-28
Posts: 137

Re: [CLOSED] Broken Unicode

"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

#24 2017-02-22 16:50:38

rdeckard
Wiki Maintainer
Registered: 2015-01-28
Posts: 137

Re: [CLOSED] Broken Unicode

Does "$HOME/.config/locale.conf" exist? If so, what are its contents?

Also try "source /etc/profile.d/locale.sh" and then "locale".

Offline

#25 2017-02-23 02:10:35

dtjohnst
Member
Registered: 2007-03-01
Posts: 85

Re: [CLOSED] Broken Unicode

Biboozz wrote:

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

Board footer

Powered by FluxBB