Ticket #671 (closed defect: fixed)
Unicode in buildslave info causes error in new jinja web [regression]
| Reported by: | Nicolas | Owned by: | marcusl |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.8.+ |
| Version: | Keywords: | jinja | |
| Cc: |
Description
I have always had Unicode characters in my buildslave's info/admin: "Nicolás Alvarez <my@email>".
Today I upgraded buildbot to latest git (6a73602), with the new jinja-based WebStatus. Every page that would show the admin info throws an exception, such as the list of buildslaves or the page for a builder my slave is attached to.
I consider this a regression, since the Unicode characters worked just fine in 0.7.x. I set the priority to 'minor' because it's easy to workaround (don't use Unicode chars), but feel free to change.
Exception page attached (edited to remove the email addresses; damn spammers).
Attachments
Change History
Changed 2 years ago by Nicolas
-
attachment
buildslaves.html
added
comment:2 Changed 2 years ago by marcusl
- Owner set to marcusl
- Status changed from new to accepted
Good catch, will fix that.
comment:3 Changed 2 years ago by marcusl
Just to document this further, jinja by default assumes that byte-strings (not unicode) are in the default ascii locale. So, in order to use unicode, one must must explicitly decode strings giving the proper encoding.
I'll assume that the info files are in utf-8. (UTF-16 in text files will surprise many, I think.)
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
Stacktrace page returned from /buildslaves