Merge lp://staging/~gary/launchpad/utf8-list-team-members into lp://staging/launchpad
Proposed by
Gary Poster
Status: | Merged |
---|---|
Approved by: | Gary Poster |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp://staging/~gary/launchpad/utf8-list-team-members |
Merge into: | lp://staging/launchpad |
Diff against target: |
24 lines (+5/-4) 1 file modified
scripts/list-team-members (+5/-4) |
To merge this branch: | bzr merge lp://staging/~gary/launchpad/utf8-list-team-members |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Māris Fogels (community) | Approve | ||
Review via email:
|
Commit message
Make list-team-members support unicode, per a bug in production.
To post a comment you must log in.
This cherrypick candidate came about because Tom informed me that a script (https:/ /pastebin. canonical. com/25425/) which was calling list-team-members was generating this error:
Traceback (most recent call last): team-members" , line 60, in <module> .net/production /launchpad- rev-8745/ lib/lp/ services/ scripts/ base.py" , line 248, in run team-members" , line 55, in main sorted( list(set( member_ details) )))
File "./list-
script.run()
File "/srv/launchpad
self.main()
File "./list-
print "\n".join(
UnicodeEncodeError: 'ascii' codec can't encode characters in position 14282-14288: ordinal not in range(128)
This indicates that some of those details are unicode, and Python is trying to encode them in ascii, and failing. The changes in this branch addressed the problem by encoding the values in UTF8, and Tom indicated that this change would not be a problem.