#635513 clusterssh: pasting special characters results in perl errors

Package:
clusterssh
Source:
clusterssh
Submitter:
Ronny Lindner
Date:
2021-04-01 09:27:02 UTC
Severity:
normal
Tags:
#635513#5
Date:
2011-07-26 13:28:58 UTC
From:
To:
I use a german keyboard layout (qwertz) and when I paste "a@b" into the
clusterssh input box, it has a problem getting the keysym for the @.
On my keyboard the @ is [Alt Gr] + [Q] ( q, Q and @ are on this key ). I
attached the debug output of clusterssh. In the first part I typed a@b by hand
(no problems) and in the second part it is pasted.

The bug also appears in the current upstream version ClusterSSH-4.00_10 from
2011-07-08.

The entry in @keyboard is:
##########
          [
            113, # q
            81, # Q
            113, # q
            81, # Q
            64, # @
            2009,
            64 # @
          ],
    # @keyboard arry
    #  0 = plain key
    #  1 = with shift
    #  2 = with Alt-GR
    #  3 = with shift + AltGr
    #  4 = same as 2 - control/alt?
    #  5 = same as 3 - shift-control-alt?
##########

I traced it back and it might be a problem in
X11::Protocol->GetKeyboardMapping.
The attached patch is not really a solution because I think it only works with
the german keyboard layout.

#635513#10
Date:
2012-05-08 04:53:52 UTC
From:
To:
Hello Ronny,

Could you please test with the update of clusterssh I have uploaded here:

http://people.debian.org/~tmancill/clusterssh_4.01.01-2_all.deb

It includes a patch for #364565 which I am hoping will also address the
problems you have reported in this bug.

Thank you,
tony

#635513#15
Date:
2012-05-08 05:29:16 UTC
From:
To:
Hello Tony,

I tried pasting the following string: /sbin/ifconfig | grep "inet "
this version still has the bug:
=======================================
Use of uninitialized value within %keyboardmap in pattern match (m//) at /usr/share/perl5/App/ClusterSSH.pm line 329.
Use of uninitialized value $state in concatenation (.) or string at /usr/share/perl5/App/ClusterSSH.pm line 333.
Use of uninitialized value $code in concatenation (.) or string at /usr/share/perl5/App/ClusterSSH.pm line 333.
Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl5/App/ClusterSSH.pm line 336.
Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl5/App/ClusterSSH.pm line 340.
Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl5/App/ClusterSSH.pm line 344.
Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl5/App/ClusterSSH.pm line 348.
Tk::Error: Should never reach here at /usr/share/perl5/App/ClusterSSH.pm line 353.
 App::ClusterSSH::get_keycode_state at /usr/share/perl5/App/ClusterSSH.pm line 353
 App::ClusterSSH::send_text at /usr/share/perl5/App/ClusterSSH.pm line 511
 App::ClusterSSH::__ANON__ at /usr/share/perl5/App/ClusterSSH.pm line 1341
 <<Paste>>
 (command bound to event)
=======================================

#635513#20
Date:
2012-05-09 14:30:23 UTC
From:
To:
Hello Ronny,

Thank you for testing and for the specific test case.  I have gone ahead
with the upload of 4.01.01-02 since it does address other issues folks
are having with pasting, and will continue to work locally on this issue.

Thank you,
tony

#635513#25
Date:
2015-06-01 12:17:43 UTC
From:
To:
Hello,

I encountered the same bug with a French keyboard (AZERTY layout) and made
a quick fix based on Ronny's patch.

The attached patch fixes the problem for AZERTY layout keyboards, for
ClusterSSh v4.03.06

I thought it would be useful to French users hitting this bug.

Sylvain

#635513#32
Date:
2021-04-01 09:24:12 UTC
From:
To:
Still not fixed - pasting words that include "@" results in errors and
no pasting.