Closed Bug 405987 Opened 17 years ago Closed 17 years ago

Column width seems to be in bytes and not in 'number of characters'

Categories

(Bugzilla :: Query/Bug List, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 363153

People

(Reporter: hugues_lemonnier, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 Build Identifier: Bugzilla 3.0.2 I changed the name of some severity values from bugzilla's interface. Since I'm French, I changed 'enhancement' to 'amélioration' which contains a special character ('é') that uses 2 bytes in UTF-8 encoding. In the bug list, instead of 'amé', 'am?' is displayed. So I edited the table.html.tmpl file and changed the width of the severity column from 3 to 4. Then it worked. I had the same problem with the resolution column (4 chars) where resolution values with 2-bytes-coded chars were only showing 3 chars. So I guess that bugzilla is counting bytes instead of chars when abbreviating strings. Reproducible: Always Steps to Reproduce: 1. Change a severity value to a string containing a non 7 bits ASCII char ('é' for instance). 2. Display a bug list where some bugs have this severity set Actual Results: The displayed abbreviated value of severity is shorter than 3 or may contain some '?' chars. Expected Results: It should display exactly the first 3 chars of the severity value. When computing the abbreviated value, Bugzilla should compute the number of characters, and not the number of bytes used to store the string.
with utf8=1 in parameters (administration menu), all strings will be treated as not a byte array but a utf-8 charactor array. # if you use bugzilla cvs head.
(In reply to comment #1) > # if you use bugzilla cvs head. And this ^^^ is the important part. This was just fixed a week or two ago on the trunk. The fix was extremely invasive, and has caused much instability on the trunk, so I would not recommend upgrading right now unless you're feeling really adventurous. :) I'll come back and dupe this in a few when I track down the bug this got fixed on.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.