Bugs: Browse | Submit New | Admin

[#16593] Strange UTF-8 bug in qt4-qtruby on win32 (Qt::TextEdit widget)

Date:
2007-12-25 18:39
Priority:
3
Submitted By:
Ondrej Mikle (mikle)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Strange UTF-8 bug in qt4-qtruby on win32 (Qt::TextEdit widget)

Detailed description
The attached test simply feeds lines from an UTF-8 file into Qt::TextEdit widget (main test is named
win-qtruby-utf8-breakage.rb).

When the line "require 'ComparatorWidget'" is commented, the text is displayed correctly under win32. When
the line is uncommented, characters break starting on line 497 on win32. Both work correctly on linux, though.

The ComparatorWidget uses generated .rb file from .ui file via rbuic4 (both included). See also the two screenshots
(correct and broken one).

Versions used:
ruby 1.8.6-26 Final Release (windows); 1.8.6_p110-r1 (Gentoo Linux)
qtruby  qt4-qtruby-1.4.9-mswin32 (windows); 1.4.9-r2 (Gentoo Linux)

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
ruby-utf8-win32.zip Broken UTF-8 text in TextEdit on win32, source and screenshots Download

Changes:

Field Old Value Date By
File Added3009: ruby-utf8-win32.zip2007-12-25 18:39mikle