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)
|