Bug 2230440 - USB barcode scanner results are scrambled in some GUI programs
Summary: USB barcode scanner results are scrambled in some GUI programs
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ibus
Version: 8.8
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: fujiwara
QA Contact: QE Internationalization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-09 12:45 UTC by Steve Barcomb
Modified: 2023-08-15 03:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-15 03:25:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-165092 0 None None None 2023-08-09 12:45:59 UTC

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.


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