After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 55112 - UTF-8 in zvt doesn't get triggered by LC_CTYPE
UTF-8 in zvt doesn't get triggered by LC_CTYPE
Status: RESOLVED OBSOLETE
Product: gnome-libs
Classification: Deprecated
Component: zvt
1.2.x
Other Linux
: Normal enhancement
: 1.4.1
Assigned To: gnome-libs Maintainers
gnome-libs Maintainers
Depends on:
Blocks:
 
 
Reported: 2001-05-23 16:42 UTC by Daniel Resare
Modified: 2003-02-09 03:33 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch that enables UTF-8 mode based on LC_CTYPE (1.23 KB, patch)
2001-05-23 16:44 UTC, Daniel Resare
none Details | Review

Description Daniel Resare 2001-05-23 16:42:22 UTC
According to the 'UTF-8 and Unicode FAQ' the preferred way to trigger 
UTF-8 support in programs is by querying nl_langinfo(CODESET).

http://www.cl.cam.ac.uk/~mgk25/unicode.html#activate

This is the way xterm does it in XFree86-4.0.x

I've written a patch that implements this behaviour for zvt (as used by
gnome-terminal) The patch is available from 
http://noa.tm/utf-8/patches/gnome-libs-zvt-utf8-autodetect.patch

Please include :)

(I will also submit the patch as an attachment to this bug)
Comment 1 Daniel Resare 2001-05-23 16:44:05 UTC
Created attachment 554 [details] [review]
Patch that enables UTF-8 mode based on LC_CTYPE
Comment 2 Daniel Resare 2002-01-13 20:12:51 UTC
On http://www.cl.cam.ac.uk/~mgk25/unicode.html#activate there is a
better autoconf macro that I think should be used. 
Comment 3 Havoc Pennington 2002-03-18 23:41:06 UTC
Does the UTF-8 mode in zvt even work? I'm not sure it's ever been
enabled in any release...
Comment 4 Charles.Lopes 2002-03-23 16:03:46 UTC
UTF-8 mode in zvt seems to work. The example program, zterm, included
in zvt can display UTF-8 after switching with the ESC%G sequence.
Comment 5 pergj 2002-09-03 21:08:45 UTC
Isn't this a duplicate of #87238?
Comment 6 Kjartan Maraas 2002-09-14 13:16:57 UTC
I tried applying this patch and using the autoconf macro to get this
up and running, but still zvt doesn't output any of the unicode chars
correctly. Any ideas?
Comment 7 Kjartan Maraas 2002-10-06 10:09:44 UTC
Anybody out there? Please comment and I'll see if we can get this up
and running if there's interest still.
Comment 8 Daniel Resare 2002-10-06 18:51:40 UTC
I'm sorry but I have upgraded to redhat 8, which doesn't use zvt so I
don't think I can be of any help anymore.
Comment 9 Luis Villa 2003-02-09 03:33:33 UTC
Because of the release of GNOME2.0 and 2.2, and the apparent lack of interest in
a further release of GNOME 1.4, many GNOME1.4 bugs are being closed. If you feel
your bug was incorrectly labeled as a GNOME1.4 bug, or also applied to GNOME2,
please reopen it and reassign it to another component more relevant to GNOME2.
Thanks, and hope you enjoy GNOME2.