Fix UnicodeDecodeError on build.py #180
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix this:
./build.py --dir "$build_dir" --name "Интеграл по-шагам" --package "org.myapp.$service" --version "1.0.0" --orientation "portrait" --icon "$build_dir/media/$service.png" debug installd
Traceback (most recent call last):
File "./build.py", line 408, in
make_package(args)
File "./build.py", line 272, in make_package
versioned_name=versioned_name)
File "./build.py", line 67, in render
text = template.render(**kwargs)
File "buildlib/jinja2.egg/jinja2/environment.py", line 868, in render
return self.environment.handle_exception(exc_info, True)
File "./templates/build.xml", line 2, in top-level template code
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
and
Traceback (most recent call last):
File "./build.py", line 408, in
make_package(args)
File "./build.py", line 280, in make_package
args=args)
File "./build.py", line 67, in render
text = template.render(**kwargs)
File "buildlib/jinja2.egg/jinja2/environment.py", line 868, in render
return self.environment.handle_exception(exc_info, True)
File "./templates/strings.xml", line 4, in top-level template code
{{args.icon_name}}
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)