commit | 888bb4a54fb8bb761f357349bb7e73ac59544702 | [log] [tgz] |
---|---|---|
author | Logan Chien <loganchien@google.com> | Wed Jun 20 18:54:46 2018 +0800 |
committer | Logan Chien <loganchien@google.com> | Thu Jun 21 10:23:56 2018 +0800 |
tree | 6ddc884f1dc466dd055a9ad532b85a074e5c90c1 | |
parent | c796fe9b6497ec833788b34f1c4def01b8ef03f7 [diff] |
vndk-def: Fix `check-dep --check-apk` in Python 2 `string.decode('mutf-8')` converts `bytes` into `str` in Python 3. On the other hand, `string.decode('mutf-8')` converts `str` to `unicode` in Python 2. However, finding a `str` object in a set of `unicode` objects may lead to false negatives. This commit fixes the problem by encoding strings into `utf-8` after decoding from `mutf-8`. Bug: 110450167 Test: ./tests/run.py Change-Id: Ifa6e97fffb5f364d0488cc98b6c59fbf4fb7869f