[Hardy] gnome-terminal current locale ANSI_X3.4-1968 not unicode using en-gb

Bug #185671 reported by Caroline Ford
8
Affects Status Importance Assigned to Milestone
gnome-terminal (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gnome-terminal

Current Hardy (Alpha 3 +updates), en-gb locale

Gnome terminal 2.21.5

Terminal Menu -> Set Character Encoding

Option is set as current locale (ANSI_X3.4-1968) and not Unicode (UTF-8). This breaks the sending and displaying of £ signs which are displayed as ?.

Revision history for this message
Caroline Ford (secretlondon) wrote :
Revision history for this message
Caroline Ford (secretlondon) wrote :

Presume locale should be unicode too.

Revision history for this message
Anders (andersja+launchpad-net) wrote :

I have the same experience after upgrading to Hardy Alpha (latest): get an error message when logging in that en-gb is unavailable and that locale has been set to "default setting"

opening e.g. k3b, I get an error message saying that locale is ANSI_X3.4-1968, that this is unlikely set by myself and that I should ensure that locale is set correctly.

Revision history for this message
Arthur Furlan (afurlan) wrote :

I had the same problem on Hardy Alpha 4 using en_us.
I noted there's no locale entry on /etc/environment, so I added the LC_ALL entry in it and the problem was solved.

afurlan@einstein:~$ sudo echo 'LC_ALL="en_US.UTF-8"' >> /etc/environment

I don't know if this is the best way to solve the problem, but it works for me. :)

Revision history for this message
Clément Léger (clem-vangelis) wrote :

I have the same problem after a fresh install of hardy

Revision history for this message
Stefan van der Walt (stefanv) wrote :

I can also verify this problem after upgrading to hardy.

Revision history for this message
Miek Gieben (miek) wrote :

Same problem here. Fresh upgrade from feisty to hardy. My shell is zsh. My locale settings:
% locale -a
C
POSIX
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
nl_BE.utf8
nl_NL.utf8

% cat /etc/environment
LANGUAGE="en_US:en_GB:en"
LANG="en_US.UTF-8"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"

Doing a `ssh localhost`:
% echo $LANGUAGE
en_US:en_GB:en

Creating a new gnome-terminal:
% echo $LANG
C

So there is a difference between logging in and creating a new terminal. Gnome-terminal is set to start a login shell.

The encoding in gnome-terminal falls back to ANSI, instead of UTF-8 :-(

Revision history for this message
Miek Gieben (miek) wrote :

For some (unknown) reason /etc/environment isn't sourced.

Btw the reason that gnome-terminal falls back to ANSI_X3.4-1968, is because:
% locale charmap

Returns it, if LANG=C.

% LANG=en_US.UTF-8 locale charmap
UTF-8

Revision history for this message
Caroline Ford (secretlondon) wrote :

My gnome terminal is now okay and now has current locale set as UTF-8. It doesn't say en-gb anywhere, i don't know if it is supposed to.

Revision history for this message
Caroline Ford (secretlondon) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

closing the bug then, thanks.

Changed in gnome-terminal:
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.