Skip to contentSkip to conversation

buildman: Handle commit subjects containing unicode

PATCH New Simon Glass 1 participant 2 messages Apr 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildman: Handle commit subjects containing unicode

One of these has crept in in this commit:

40a808f1 ARCv2: SLC: Make sure busy bit is set properly on SLC flushing

Adjust buildman to handle it.

---

 tools/buildman/builder.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
tools/buildman/builder.py +3 -2
index 236e0617ac..b0ea57ebb4 100644
@@ -95,8 +95,9 @@ u-boot/             source directory
 # Possible build outcomes
 OUTCOME_OK, OUTCOME_WARNING, OUTCOME_ERROR, OUTCOME_UNKNOWN = range(4)
 
-# Translate a commit subject into a valid filename
-trans_valid_chars = string.maketrans("/: ", "---")
+# Translate a commit subject into a valid filename (and handle unicode)
+trans_valid_chars = string.maketrans('/: ', '---')
+trans_valid_chars = trans_valid_chars.decode('latin-1')
 
 BASE_CONFIG_FILENAMES = [
     'u-boot.cfg', 'u-boot-spl.cfg', 'u-boot-tpl.cfg'
Signature · 1 line
2.12.2.715.g7642488e1d-goog
#1 lore raw

PATCH 1/1 buildman: Handle commit subjects containing unicode

Quoted 11 lines · Simon Glass

One of these has crept in in this commit:

40a808f1 ARCv2: SLC: Make sure busy bit is set properly on SLC flushing

Adjust buildman to handle it.

---

 tools/buildman/builder.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

I'm pushing this in now since this problem breaks my workflow.

Applied to u-boot-dm