[PATCH 05/14] backport: convert tree section names to ascii

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luca Coelho <luciano.coelho@xxxxxxxxx>

For some reason, sometimes when the git logs contain non-ascii
characters, we get some conversion errors.  This only happens if one
of the strings we use is explicitly unicode, otherwise everything is
fine.  The only string we use that is of unicode type is the tree
names that comes from the configuration sections.  To avoid issues,
convert the strings we get from the config file into ascii before
using it.

Signed-off-by: Luca Coelho <luciano.coelho@xxxxxxxxx>
---
 devel/git-tracker.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/devel/git-tracker.py b/devel/git-tracker.py
index 1789ad975154..d51f59ba6507 100755
--- a/devel/git-tracker.py
+++ b/devel/git-tracker.py
@@ -190,6 +190,8 @@ if __name__ == '__main__':
         backport_rev = git.rev_parse(tree=source_dir)
 
         for tree in trees:
+            # make sure tree is ascii to prevent conversion problems
+            tree = str(tree)
             input = config.get(tree, 'input')
             output = config.get(tree, 'output')
             defconfig = None
-- 
2.18.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux