Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with locale
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
hubertnnn
n00b
n00b


Joined: 26 Oct 2013
Posts: 28

PostPosted: Wed Dec 10, 2014 9:35 pm    Post subject: Problem with locale Reply with quote

Hi, After I reinstalled gentoo (this time using systemd) about a month ago I have a lot of issues related to my locale.

Many applications don't work correctly unless I do LC_ALL=C (and switch to english using that) for example:
1. Opening an archive with file-roller ends with a segmentation fault, with LC_ALL=C works perfect
2. PlayOnLinux shows weird symbols insted of letters, with LC_ALL=C works perfect: http://i58.tinypic.com/slmmti.png
3. Emerge fails with following output, with LC_ALL=C works perfect:
Code:

# emerge -av git
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1070, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 4082, in run_action
    emerge_config.args, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 99, in action_build
    old_tree_timestamp_warn(settings['PORTDIR'], settings)
  File "/usr/lib64/python2.7/site-packages/_emerge/sync/old_tree_timestamp.py", line 98, in old_tree_timestamp_warn
    time.strftime('%c', time.localtime(lastsync)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb6 in position 0: ordinal not in range(128)




/etc/locale.gen
Code:
pl_PL UTF-8
pl_PL.UTF-8 UTF-8
pl_PL ISO-8859-2
en_US UTF-8
en_US ISO-8859-1


# locale
Code:
LANG=pl_PL.utf8
LC_CTYPE="pl_PL.utf8"
LC_NUMERIC="pl_PL.utf8"
LC_TIME="pl_PL.utf8"
LC_COLLATE="pl_PL.utf8"
LC_MONETARY="pl_PL.utf8"
LC_MESSAGES="pl_PL.utf8"
LC_PAPER="pl_PL.utf8"
LC_NAME="pl_PL.utf8"
LC_ADDRESS="pl_PL.utf8"
LC_TELEPHONE="pl_PL.utf8"
LC_MEASUREMENT="pl_PL.utf8"
LC_IDENTIFICATION="pl_PL.utf8"
LC_ALL=


#localectl
Code:
   System Locale: LANG=pl_PL.utf8
       VC Keymap: pl
      X11 Layout: pl



#locale -a
Code:
C
en_US
en_US.iso88591
en_US.utf8
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish
POSIX



#localectl list-locales
Code:
en_US
en_US.iso88591
en_US.utf8
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish
Back to top
View user's profile Send private message
tryn
Guru
Guru


Joined: 21 Dec 2002
Posts: 319
Location: 39.885° N. -88.913° W.

PostPosted: Wed Dec 10, 2014 9:52 pm    Post subject: Reply with quote

I have it this way in my /etc/locale.gen.


Code:
en_US ISO-8859-1
en_US.UTF-8 UTF-8


While you have the bottom line like this
Code:
en_US.UTF-8



Maybe this is your problem??
Back to top
View user's profile Send private message
hubertnnn
n00b
n00b


Joined: 26 Oct 2013
Posts: 28

PostPosted: Thu Dec 11, 2014 12:03 am    Post subject: Reply with quote

I forgot to mention, the problem is with my PL locale, with LANG=en_US it also works fine (or at least seem too, havent tested that much).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum