Bug 75280 - xchat doesn't accept danish characters fxeFXE
Summary: xchat doesn't accept danish characters fxeFXE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: xchat
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact:
: 68141 73801 75681 76775 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2002-10-06 19:08 UTC by Henrik Brix Andersen
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2002-10-06 19:14:13 UTC

Attachments (Terms of Use)

Description Henrik Brix Andersen 2002-10-06 19:08:50 UTC
Description of Problem:
X-Chat doesn't accept input of danish characters fxeFXE when 

Version-Release number of selected component (if applicable):

How Reproducible:
Every time

Steps to Reproduce:
1. export LANG=en_US.UTF-8 (this is set in /etc/sysconfig/i18n)
2. Login with gdm
3. Run xchat
4. Try entering danish characters fxeFXE in the text entry

Actual Results:
Letters fxeFXE shows up as other characters (C|C,C%C etc)
(note: when copied and inserted into other application they show up right)

Expected Results:
You should be able to use danish charaters even though the locale isn't set 
to da_DK.*

Additional Information:
This doesn't happen when LANG=da_DK.ISO_8859_1

Comment 1 Henrik Brix Andersen 2002-10-06 19:14:07 UTC
seems opera messed up the danish characters...
any clue to how I can get them right on the bug report?

Comment 2 Mike A. Harris 2002-10-06 21:55:56 UTC
This is not an xchat bug.  When multiple people are communicating, either
via IRC, email, or otherwise, or when any to applications are communicating
streams of text, both ends of communication MUST be using an agreed upon
character encoding.  If both ends are not using the same encoding, then
garbled characters will result.  This is expected behaviour.

The solution to this "problem", is to either:

1) disable UTF-8, and set your locale to a non unicode locale, or start
   xchat with a non unicode locale, ie:  "LANG=de_DE xchat"


2) enable "fontset" support by default in xchat.  Many people are happy
   with that.


3) force everyone else you communicate with to also use UTF-8
   (very unlikely)

The IRC protocol itself specifies an 8bit encoding, but doesn't specify
a particular encoding.  This is most unfortunate, since it leaves
encoding undefined.  Any encoding is therefore theoretically valid.

The unfortunate consequence of that, is that any people who are
communicating with each other, must use the same encoding, otherwise
any non-ASCII characters will appear as random junk.  This includes
using UTF-8 as well.

There is no way to solve this unfortunate problem.  It's just a flaw
in the IRC protocol itself.  Hopefully at some point the IRC protocol
will be officially enhanced and will specify UTF-8 as the encoding.
That would enable worldwide communication via IRC with a single
official standard 8 bit character encoding.  Of course, it would
likely take years for all IRC servers and clients to become properly
UTF-8 aware at that point.

Comment 3 Mike A. Harris 2002-11-01 06:25:18 UTC
*** Bug 73801 has been marked as a duplicate of this bug. ***

Comment 4 Mike A. Harris 2002-11-01 06:26:44 UTC
*** Bug 75681 has been marked as a duplicate of this bug. ***

Comment 5 Mike A. Harris 2002-11-01 06:29:27 UTC
*** Bug 68141 has been marked as a duplicate of this bug. ***

Comment 6 Mike A. Harris 2002-11-01 06:30:24 UTC
*** Bug 76775 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.