Bug 9071

Summary: text encoding on project name
Product: [Build System, Metadata & Runtime] Toaster Reporter: Michael Wood <michael.g.wood>
Component: toasterAssignee: Sujith H <sujith.h>
Status: RESOLVED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Low CC: belen.barros.pena, jessica.zhang, ross.burton, stanciux.mihail, sujith.h
Version: unspecified   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Michael Wood 2016-02-05 13:44:01 UTC
If you enter a non ascii char like é in a project name the bldcontrol fails

Traceback (most recent call last):
  File "/home/michael/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py", line 50, in schedule
    logger.debug("runbuilds: starting build %s, environment %s" % (br, bec.be))
  File "/home/michael/toaster/poky/bitbake/lib/toaster/bldcontrol/models.py", line 95, in __str__
    return "%s %s" % (self.project, self.get_state_display())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
Comment 1 Sujith H 2016-03-01 11:31:46 UTC
Taking up this task
Comment 2 Ross Burton 2016-04-14 20:04:08 UTC
Fixed in bitbake b6141c4d170885d3bdf63074afcb1e41fde0a8f0.