Bug 152593 - [QtRuby] Qt::LineEdit cannot handle double-byte properly.
Summary: [QtRuby] Qt::LineEdit cannot handle double-byte properly.
Status: RESOLVED WORKSFORME
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-20 15:24 UTC by Hideki Ikemoto
Modified: 2018-11-05 02:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hideki Ikemoto 2007-11-20 15:24:23 UTC
Version:            (using KDE KDE 3.5.8)
Installed from:    Fedora RPMs

Input japanese character (and probably other double-byte characters) in TextEdit and get text with Qt::LineEdit.text(), and it would see '?'.

Sample Code
---
#!/usr/bin/ruby

require 'Qt'

class MyMainWindow < Qt::MainWindow
  slots 'slot_return_pressed()'

  def initialize
    super
    @line = Qt::LineEdit.new(self)
    connect(@line, SIGNAL("returnPressed()"),
            self, SLOT("slot_return_pressed()"))
  end

  def slot_return_pressed
    text = @line.text
    puts text ### Error! japanese character -> '?' 
  end
end

app = Qt::Application.new(ARGV)
main_window = MyMainWindow.new

app.mainWidget = main_window
main_window.show
app.exec
---
Comment 1 Andrew Crouthamel 2018-11-02 04:20:57 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Hideki Ikemoto 2018-11-04 13:16:46 UTC
I have no working environment already.
I am already losing interest.
Please close this bug.
Comment 3 Andrew Crouthamel 2018-11-05 02:35:10 UTC
Thanks for the update!