In list of issues long names are truncated. And if I use utf8 with simbols which are encoded in multiple bites, they sometimes are splitted in the middle of the simbol.
Screenshoot is atached to the bug report.
Example of this bug you can see on this page:
http://304.ru/drupal/?q=project/issues&states=1,2,8,13,14,4
Thanks.

CommentFileSizeAuthor
dr.png18.59 KBKiberGus-1

Comments

KiberGus-1’s picture

Status: Active » Needs review

in issue.inc on line 1498 change "substr" to "mb_substr", like this:
$row[] = l(mb_substr($node->title, 0, 50), "node/$node->nid") . theme('mark', node_mark($node->nid, $node->changed));
It would only work if you have mbstring extension, so it's better to add check for this extension and use it, if possible.

dww’s picture

Status: Needs review » Needs work

thanks for taking a stab at this. however, this isn't a patch. see http://drupal.org/node/22568, http://drupal.org/patch or http://drupal.org/diffandpatch.

also, i'm not going to commit code that directly depends on mb extensions for php. so, when working on a real patch for this, please include that check, then i'd consider committing this.

cheers,
-derek

dww’s picture

Status: Needs work » Needs review
dww’s picture

Status: Needs review » Fixed

after further review and testing, committed doq's patch to HEAD, DRUPAL-4-7--2 and DRUPAL-4-7

dries’s picture

Status: Fixed » Closed (fixed)