Martin Sivák has posted comments on this change.

Change subject: Fix the charset conversion logic in hooks.py
......................................................................


Patch Set 2: Fails

(1 inline comment)

Back to the drawing board. It works on command line, but the automated 
environment did not play ball...

....................................................
Commit Message
Line 7: Fix the charset conversion logic in hooks.py
Line 8: 
Line 9: The proper way to convert text from byte oriented string to unicode
Line 10: is to call str.decode(encoding). This patch fixes this and makes
Line 11: Jenkins tests work for people with diacritics in their names.
We were able to reproduce it from the command line, but the automated test 
obviously failed.. but this is the mechanism: 

runHook copies os.environ and gerrit/jenkins set an env variable that contains 
the user's name there. Python sees that as a byte string and when you call 
unicode(str) it considers that byte string to be in ascii. So any non-ascii 
character makes it to throw an UnicodeDecode exception.

(I will put it into the commit message)
Line 12: 
Line 13: Change-Id: I9063291f8a4a392b2913220fe2839386dcffd825


-- 
To view, visit http://gerrit.ovirt.org/15856
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I9063291f8a4a392b2913220fe2839386dcffd825
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Sivák <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: David Caro <[email protected]>
Gerrit-Reviewer: Martin Sivák <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to