Skip to content

Commit

Permalink
Force changlist fed to perforce p4 client -i to be ascii.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbaddog authored and Dustin J. Mitchell committed May 25, 2010
1 parent 38eaa63 commit d18d4f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion buildbot/slave/commands/vcs.py
@@ -1,4 +1,4 @@
import os, re, sys, shutil, time
import os, re, sys, shutil, time, unicodedata

from xml.dom.minidom import parseString

Expand Down Expand Up @@ -1823,6 +1823,10 @@ def doVCFull(self):
command.extend(['-P', Obfuscated(self.p4passwd, "XXXXXXXX")])
command.extend(['client', '-i'])
log.msg(client_spec)

# Clean client spec to plain ascii
client_spec=unicodedata.normalize('NFKD',client_spec).encode('ascii','ignore')

c = ShellCommand(self.builder, command, self.builder.basedir,
environ=env, sendRC=False, timeout=self.timeout,
maxTime=self.maxTime, initialStdin=client_spec,
Expand Down

0 comments on commit d18d4f7

Please sign in to comment.