Bug 2230440

Summary: USB barcode scanner results are scrambled in some GUI programs
Product: Red Hat Enterprise Linux 8 Reporter: Steve Barcomb <sbarcomb>
Component: ibusAssignee: fujiwara <tfujiwar>
Status: CLOSED NOTABUG QA Contact: QE Internationalization Bugs <qe-i18n-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 8.8CC: eng-i18n-bugs
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-15 03:25:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steve Barcomb 2023-08-09 12:45:35 UTC
This is a continuation of the issue found https://bugzilla.redhat.com/show_bug.cgi?id=2170830#c52 

Sample program to reproduce the issue:

#!/usr/bin/perl
use strict;
use warnings;
use Tk;

# Create the main window
my $window = MainWindow->new;
$window->title("Input Dialog");

# Create a label to display the instructions
$window->Label(-text => "Enter your input:")->pack;

# Create an entry widget to input the text
my $entry = $window->Entry->pack;

# Create a button to submit the input
$window->Button(
    -text    => "Submit",
    -command => sub {
        my $input = $entry->get;  # Get the input from the entry widget
        print "Input: $input\n";  # Print the input to the console
        $window->destroy;         # Close the window
    }
)->pack;

# Run the Tk event loop
MainLoop;


Setting XMODIFIERS=@im=ibus works around the issue for now.

Comment 1 fujiwara 2023-08-10 02:05:13 UTC
(In reply to Steve Barcomb from comment #0)
> Setting XMODIFIERS=@im=ibus works around the issue for now.

Seems you use a simple X11 application.
IBus provides the plugin of X11, GTK or QT so if you don't set XMODIFIERS=@im=ibus, your application does not connect to IBus and your issue is not IBus.