Bug 80604

Summary: Terminal -> Character Encoding shows UTF-8 twice in default install
Product: [Retired] Red Hat Public Beta Reporter: Daniel Resare <noa-bugzilla-redhat>
Component: gnome-terminalAssignee: Havoc Pennington <hp>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: phoebeCC: mitr
Target Milestone: ---Keywords: MoveUpstream, Triaged
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-10 15:02:56 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 79579    

Description Daniel Resare 2002-12-28 12:18:50 EST
Description of problem:

when i start up gnome-terminal in a freshly installed phoebe system the
"Terminal" -> "Character encoding" menu has two entries, both Unicode (UTF-8)

Version-Release number of selected component (if applicable):
gnome-terminal-2.1.3-2

How reproducible:
always

Steps to Reproduce:
1. create a new account
2. start gnome-terminal
3. take a look at the Terminal -> Character encoding submenu
    
Actual results:
Double "Unicode (UTF-8)" entries

Expected results:

I suppose a resonable default i would be "Unicode (UTF-8)" and "Western
(ISO-8859-1)"
Comment 1 Havoc Pennington 2003-01-02 17:06:52 EST
I swear I added code to fix that at one point, but yes I see the same.
Comment 2 Havoc Pennington 2003-01-02 17:13:54 EST
the current fix code is too limited, we need to strip all duplicates out 
of the list of encodings.

Comment 3 Nalin Dahyabhai 2003-01-09 19:02:47 EST
Better to just default to listing the locale's encoding, and if it's not UTF-8,
UTF-8 as well -- as these are the only options available to applications which
want to change the terminal's encoding.
Comment 4 Miloslav Trmac 2003-01-10 05:44:34 EST
* What if I install in Czech with Chinese as an additional language?
  (zh_CN.gb18030)
* That locally-installed applications can't use locale with a specific
  encoding doesn't mean that I don't need the terminal to convert that
  encoding (consider SSH-ing to a different computer).
Comment 5 Havoc Pennington 2003-01-10 15:02:56 EST
gnome-terminal 2.1.4 eliminates the duplicates.

> * What if I install in Czech with Chinese as an additional language?
>   (zh_CN.gb18030)

The encoding menu is user-customizable, you can add whatever you want in there.

> * That locally-installed applications can't use locale with a specific
>   encoding doesn't mean that I don't need the terminal to convert that
>  encoding (consider SSH-ing to a different computer).

The encoding menu supports converting from any encoding that your 
C library supports. There's really nothing else we can do. I think 
we always install all the C library encoding support though (run "iconv -l" to
list all the encodings glibc knows about).