[Bug 2128] Improved ellipsization etc.
[email protected] Mon, 7 Aug 2006 01:36:45 +0000 (UTC)
| Newsgroups | gmane.comp.desktop.xfce.goodies.devel |
|---|---|
| Message-ID | <[email protected]> |
Do NOT reply to this email. To make further comments on this bug, use the URL below: http://bugzilla.xfce.org/show_bug.cgi?id=2128 ------- Comment #6 from [email protected] 2006-08-07 01:36 UTC ------- length*8 combined with the removal of regenerate_title is a bad choice. To demonstrate: 1. Set the length to 10 characters. 2. Select the whole of the initial description of this BTS entry. 3. Look at the clipman menu. Ellipsization is fine. 4. Set the length to 120 characters. 5. Look at the clipman menu. Whoops, no ellipsization. The more non-ASCII glyphs are present, the sooner this will become obvious. From what I've seen of Chinese (simplified) text, each glyph requires three bytes (if encoded using UTF-8), so 10 characters -> 80 bytes -> 26 glyphs and one truncated character. That's important, because g_locale_to_utf8() will return NULL due to the invalid character, and there's no check for that -> segfault. -- Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.