You are not logged in.

#1 2013-04-26 23:04:39

eso
Member
Registered: 2013-04-25
Posts: 12

[SOLVED] locale issues / utf-8 not displayed [urxvt / zsh]

I've been having pretty persistent locale issues. It's definitely some silly user error, but instead of digging myself deeper I figured I'd ask

The most noticeable symptom si taht my terminal doesn't display UTF-8 characters, such as the ones from my ZSH prompt

esoâ~»                                                                                                                                                                                              

Additionally, the OS appears to throw a bunch of perl warnings when starting up xinit

output of locale :

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_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.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=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

Output of locale-gen

Generating locales...
  en_US.UTF-8...cannot create temporary file: Permission denied

Contents of locale.conf

LANG=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.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=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8

contents of rc.conf

LANGUAGE="en_US.UTF-8

Last edited by eso (2013-04-26 23:31:01)

Offline

#2 2013-04-26 23:06:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] locale issues / utf-8 not displayed [urxvt / zsh]

What distro are you using? Arch no longer has an rc.conf?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-04-26 23:10:08

eso
Member
Registered: 2013-04-25
Posts: 12

Re: [SOLVED] locale issues / utf-8 not displayed [urxvt / zsh]

so, on the topic of digging myself deeper - I may have created that in an effort to troubleshoot the issues I was having

Offline

#4 2013-04-26 23:14:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] locale issues / utf-8 not displayed [urxvt / zsh]

I'm not sure if it is case sensitive, but my locale.conf has always been "LANG=en_US.utf8"

And the output of locale in turn has lowercase utf.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-04-26 23:14:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] locale issues / utf-8 not displayed [urxvt / zsh]

Remove it. Go back to the wiki page on locale and work your way through it methodically; you have stuffed something up somewhere and it is best if you just start again...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2013-04-26 23:22:39

eso
Member
Registered: 2013-04-25
Posts: 12

Re: [SOLVED] locale issues / utf-8 not displayed [urxvt / zsh]

jasonwryan wrote:

Remove it. Go back to the wiki page on locale and work your way through it methodically; you have stuffed something up somewhere and it is best if you just start again...

Fair.
However, when starting from the top (setting locale.gen && running locale-gen) :

Generating locales...
en_US.UTF-8...cannot create temporary file: Permission denied

edit : nevermind, moving on tongue (wasn't root)

Last edited by eso (2013-04-26 23:25:10)

Offline

Board footer

Powered by FluxBB