diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-19 15:00:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-23 15:26:15 +0100 |
commit | 6c756fe2a61843050debd06d7194e6441c26cb20 (patch) | |
tree | 088c058691cb9742608ed02950af05bfa40bd097 /meta/recipes-devtools/python/python-smartpm | |
parent | 13fd49fd719d7e59ea347241934ccb991264f14f (diff) | |
download | openembedded-core-6c756fe2a61843050debd06d7194e6441c26cb20.tar.gz openembedded-core-6c756fe2a61843050debd06d7194e6441c26cb20.tar.bz2 openembedded-core-6c756fe2a61843050debd06d7194e6441c26cb20.zip |
python-smartpm: Avoid locale issue with bitbake python3
(From OE-Core rev: fa2ca7660e8f3279736624aa2493b4ca952ae466)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm')
-rw-r--r-- | meta/recipes-devtools/python/python-smartpm/smart-locale.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smart-locale.patch b/meta/recipes-devtools/python/python-smartpm/smart-locale.patch new file mode 100644 index 0000000000..0f1dfb91d5 --- /dev/null +++ b/meta/recipes-devtools/python/python-smartpm/smart-locale.patch @@ -0,0 +1,27 @@ +rpm or commands run by rpm can use output which isn't strictly acsii such +as quotation characters around expression which are character 0xe2. + +Use utf-8 as an encoding rather than whatever the system suggests to +ensure smart copes with this rather than erroring with unicode errors. + +RP 2016/5/19 +Upstream-Status: Pending + + +Index: git/smart/backends/rpm/pm.py +=================================================================== +--- git.orig/smart/backends/rpm/pm.py ++++ git/smart/backends/rpm/pm.py +@@ -32,11 +32,7 @@ from smart.pm import PackageManager + from smart import sysconf, iface, Error, _ + + +-try: +- ENCODING = locale.getpreferredencoding() +-except locale.Error: +- ENCODING = "ascii" +- ++ENCODING = "utf-8" + + def get_public_key(header): + return header.sprintf("%|DSAHEADER?{%{DSAHEADER:pgpsig}}:" |