Chromium Code Reviews| Index: build/gn_helpers.py |
| diff --git a/build/gn_helpers.py b/build/gn_helpers.py |
| index f1037720bbf878ac8cbaa56f0896aaec04ea5a62..6a61a0877f04e79ad200637515cf8efd245b711d 100644 |
| --- a/build/gn_helpers.py |
| +++ b/build/gn_helpers.py |
| @@ -36,6 +36,9 @@ def ToGNString(value, allow_dicts = True): |
| value.replace('\\', '\\\\').replace('"', '\\"').replace('$', '\\$') + \ |
| '"' |
| + if isinstance(value, unicode): |
| + return ToGNString(value.encode('utf-8')) |
| + |
| if isinstance(value, bool): |
| if value: |
| return "true" |