From cd110f4e27f0db0755ce59d435df242d06d41aa2 Mon Sep 17 00:00:00 2001 From: Ken Conley Date: Thu, 17 Feb 2011 22:59:02 +0000 Subject: [PATCH] deal with unicode issues in stack manifest --- tools/roscreate/src/roscreate/roscreatestack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/roscreate/src/roscreate/roscreatestack.py b/tools/roscreate/src/roscreate/roscreatestack.py index 8180a42c..21895488 100644 --- a/tools/roscreate/src/roscreate/roscreatestack.py +++ b/tools/roscreate/src/roscreate/roscreatestack.py @@ -129,7 +129,7 @@ def create_stack(stack, stack_dir, stack_manifest, author, depends, licenses, sh if not os.path.exists(filename) or filename == 'stack.xml': print "Creating stack file", p with open(p, 'w') as f: - f.write(contents) + f.write(contents.encode('utf-8')) print "\nPlease edit %s/stack.xml to finish creating your stack"%stack def compute_stack_depends_and_licenses(stack_dir):