Locale cannot be set; terminal cannot display characters

Bug #746576 reported by Zatta
This bug report is a duplicate of:  Bug #746694: GDM_LANG overrides my locales. Edit Remove
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
language-pack-pt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: language-pack-pt

I updated today language-pack-pt and its dependencies. After updating, I can't get menus correctly displayed in Portuguese (it shows "Places" not "Locais"). Furthermore, if I open a terminal, it is not able to display "Músicas", rather it shows "M??sicas", and I cant write characters such as íãç. If I call "locale", the answer is:

---
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: N?o foi poss?vel atribuir LC_ALL ? localiza??o padr?o: Arquivo ou diret?rio n?o encontrado
LANG=pt_BR
LANGUAGE=pt_BR:en
LC_CTYPE="pt_BR"
LC_NUMERIC="pt_BR"
LC_TIME="pt_BR"
LC_COLLATE="pt_BR"
LC_MONETARY="pt_BR"
LC_MESSAGES=pt_BR.UTF-8
LC_PAPER="pt_BR"
LC_NAME="pt_BR"
LC_ADDRESS="pt_BR"
LC_TELEPHONE="pt_BR"
LC_MEASUREMENT="pt_BR"
LC_IDENTIFICATION="pt_BR"
LC_ALL=
---

In System>Preferences>Keyboard, the "type to test settings" writes characters such as íçã correctly.

If I initiate a tty via Alt+Ctrl+F1, the terminal displays and writes correctly such characters.

Trying "sudo update-locale LANG=pt_BR", "sudo locale-gen pt_BR", " sudo locale-gen --purge" did not help.

Ubuntu 10.10
Release: 10.10
language-pack-pt:amd64 (10.10+20110315, 10.10+20110315+mfs1)

I updated a few other language packs also:
language-pack-pt-base:amd64 (10.10+20110315, 10.10+20110315+mfs1)
language-pack-en-base:amd64 (10.10+20110315, 10.10+20110315+mfs1)
language-pack-en:amd64 (10.10+20110315, 10.10+20110315+mfs1)

I have maverick-proposed enabled.

Tags: locale
Revision history for this message
Andrey Yurkovsky (andrey.yurkovsky) wrote :

I think you need do somthing like this:

$sudo localedef --no-archive -c -i pt_BR -f UTF-8 pt

and then reboot

Revision history for this message
Eimann (eimann) wrote :

Please update gdm through the normal update process and logout/login. This should fix the issue.
See also: https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/746694

Revision history for this message
Zatta (rw-alnahar) wrote :
Changed in language-pack-pt (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.