From cc9f777e1e3599d51ebb53137a49709212f9e1d9 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Mon, 7 Jul 2014 13:49:40 +0000 Subject: Don't try to decode metadata when building GCC sometimes creates paths containing unicode characters which the json dumper cannot handle. This commit stops it from trying to handle them. --- morphlib/builder2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'morphlib/builder2.py') diff --git a/morphlib/builder2.py b/morphlib/builder2.py index 3c0d9e02..dbfed48d 100644 --- a/morphlib/builder2.py +++ b/morphlib/builder2.py @@ -294,7 +294,7 @@ class BuilderBase(object): # Unit tests use StringIO, which in Python 2.6 isn't usable with # the "with" statement. So we don't do it with "with". f = self._open(filename, 'w') - f.write(json.dumps(meta, indent=4, sort_keys=True)) + f.write(json.dumps(meta, indent=4, sort_keys=True, ensure_ascii=False)) f.close() def new_artifact(self, artifact_name): -- cgit v1.2.1