Bug #24608 Cyrillc strings truncated in pop-up field viewer and editor
Submitted: 27 Nov 2006 7:09 Modified: 23 Jan 2007 8:50
Reporter: Dmitry Agafonov Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.2.6, 1.2.5beta (from mysql-gui-tools-5.0r5) OS:Linux (Linux (Fedora Core 3 based))
Assigned to: CPU Architecture:Any
Tags: cyrillic, pango, query browser

[27 Nov 2006 7:09] Dmitry Agafonov
Description:
I'm using cp1251 encoding for text fields on 5.0.22 server and cp1251 default_charset on 4.0.20-standard server.

* Editing or viewing text fields in pop-up editor shows following errors on both servers:

-----------------
(mysql-query-browser-bin:5104): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(mysql-query-browser-bin:5104): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(mysql-query-browser-bin:5104): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(mysql-query-browser-bin:5104): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed
--------------

* Working with 5.0 server seems to behave better, but in 4.0 cyrillic strings are get truncated in pop-up viewer and editor but not in inline field view...

* On both servers "Binary" view shows "?" signs sometimes instead of cyrillic letters and sometimes these letters are shown correctly. STDERR shows lot of lines:

--------------
(mysql-query-browser-bin:5104): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
--------------

$ rpm -qa|grep pango
pango-1.8.1-0.10.0.1asp
pango-devel-1.8.1-0.10.0.1asp

Other than UTF-8 charsets (incl. non-cyrillic) may also suffer from this bug but not tested.

How to repeat:
No special conditions required:

Server: 4.0.x series (may be earlier versions too, I use 4.0.20)
Table with cp1251 data fields.

Latest QB do not show full strings and truncate them with no visible rules...

Suggested fix:
Not known...
[27 Nov 2006 7:16] Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 1.2.6 (from GUI Tools 5.0r6), and latest version od server (4.0.27 and 5.0.27). Inform about the results.
[27 Nov 2006 9:17] Dmitry Agafonov
It seems for r6 to behave like r5. Stil truncated with 4.0.20 server (see attached image). With 5.0.x it works better so I'll switch to it.
But binary view is scrambled with 5.0.x too and full of '?' so I expect some suggestions or fixes...
[27 Nov 2006 9:19] Dmitry Agafonov
Field data truncated and binary view scrambled. Note field length is correct...

Attachment: wall.png (image/png, text), 4.77 KiB.

[27 Nov 2006 13:13] Dmitry Agafonov
I've just has noticed gui tools 5.0r6 contains QB 1.2.5beta...
[23 Dec 2006 8:50] Valeriy Kravchuk
Please, try to repeat with a newer version, from GUI Tools 5.0r8, and inform about the results.
[24 Jan 2007 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".