]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
script: build-integration-branch: avoid Unicode error 21919/head
authorNathan Cutler <ncutler@suse.com>
Thu, 3 May 2018 20:42:04 +0000 (22:42 +0200)
committerNathan Cutler <ncutler@suse.com>
Wed, 9 May 2018 19:25:29 +0000 (21:25 +0200)
commit2484c3870f96772639843e50bf182e92c1a2772f
treebe4a8361736b956a12072a46a962b75896ebc15f
parent0894fefcd156710aff7ee2fdb4c1aca3af298fd4
script: build-integration-branch: avoid Unicode error

When run on PRs that have non-ASCII characters in their titles, the script
fails like this when run in a non UTF-8 environment:

UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2026' in
position 651: ordinal not in range(256)

Since failing like that is not useful, avoid the error by forcing ASCII
encoding and filtering out any non-ASCII characters.

Fixes: http://tracker.ceph.com/issues/24003
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 6dd31fdbec43e37bece24c0de886d2c4083901c8)
src/script/build-integration-branch