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 91334 - libzvt-i18n branch breaks control-^ and control-@
libzvt-i18n branch breaks control-^ and control-@
Status: VERIFIED INCOMPLETE
Product: libzvt
Classification: Deprecated
Component: general
2.0.x
Other Linux
: Normal normal
: ---
Assigned To: Hidetoshi Tajima
Luis Villa
Depends on: 58201
Blocks:
 
 
Reported: 2002-08-21 17:30 UTC by Liam Quin
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Liam Quin 2002-08-21 17:30:07 UTC
[libzvt2.0_0-2.0.1-5mdk] 

control-shift-6 on a US keyboard is usually control-^

With this release of libzvt it now generates an underlined 6,
and control-6 generated control^

Neither Control-2 nor control-space generates a NUL though,
and neither does control-shift-zero.

Please make control-shift-six (^^) work again!  It's used in
the vi text editor (and probably emacs).

Or do I need to live with control-6 generating control-^ abd
control-^ generating control-6?  Or could you use the keys on the
numeric keypad instead?

Liam
Comment 1 Frederic Crozat 2002-08-21 17:33:04 UTC
assigning to hidetoshi, it is i18n branch
Comment 2 Hidetoshi Tajima 2002-08-22 19:50:57 UTC
gdk's key press event for ctl-shift-6 is like:

*event = {
    type             = GDK_KEY_PRESS
    window           = 0x152cf0
    send_event       = '\0'
    time             = 3547617748U
    state            = 5U
    keyval           = 94U
    length           = 1
    string           = 0x12aa88 "^^"
    hardware_keycode = 42U
    group            = '\0'
}

The event->string[0] is 0x1e here, so it's
returned as input string to the application on
the terminal. ctrl-^ also returns 0x1e.

Not only with libzvt from libzvt-i18n branch but also from the HEAD,
gnome-terminal behaves like this. xterm and CDE's dtterm behave samely.

To me, everything looks normal. Am I missing something?
Comment 3 Liam Quin 2002-08-22 20:50:33 UTC
Yes, you are missing trying it out in gnome-terminal and finding
that control-shift-six does not not return a string to the application.

I think it's probably being intercepted by g-t or gtk somewhere --
control-shift-digit is used to enter a unicode digit now, which
breaks compatibility with other terminal emulators and applications.

Best,

Liam
Comment 4 Hidetoshi Tajima 2002-08-22 21:23:31 UTC
I got it. This is a feature of gtk+. The "Default" input method
converts ctl-shift-something to a Unicode character. Actually, you
must get underlined "6" not only on gnome-terminal but on gedit, right?

A simple workaround is to setenv GTK_IM_MODULE and
to use any other input method than the default one
when you run gnome-terminal.

If you want to hack code change in gtk+ to make
"xim" always the default, you can put a patch to
gtk+/modules/input/imxim.c as follows: (which Sun does in the local
build.)

Index: gtk+/modules/input/imxim.c
===================================================================
RCS file: /cvs/gnome/gtk+/modules/input/imxim.c,v
retrieving revision 1.3
diff -u -r1.3 imxim.c
--- gtk+/modules/input/imxim.c	27 Feb 2002 19:09:35 -0000	1.3
+++ gtk+/modules/input/imxim.c	12 Apr 2002 17:53:40 -0000
@@ -27,7 +27,7 @@
   N_("X Input Method"),	    /* Human readable name */
   "gtk+",			   /* Translation domain */
    GTK_LOCALEDIR,		   /* Dir for bindtextdomain (not strictly needed
for "gtk+") */
-  "ko:ja:zh"			   /* Languages for which this module is the default */
+  "*"			   /* Languages for which this module is the default */
 };

 static const GtkIMContextInfo *info_list[] = {




Comment 5 Hidetoshi Tajima 2002-08-22 21:31:17 UTC
See Bug 58201 for related topic.

I don't think this is libzvt's issue.. Can we close 
this?
Comment 6 Hidetoshi Tajima 2002-08-23 17:14:08 UTC
Closing this bug as it's not libzvt's issue. 
Please reopen if you think otherwise.

BTW, I opened Bug 91457 - to add user interface to
switch input methods at gnome-terminal, which is
a 2.2 stuff.