summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-05-03 14:15:37 +0200
committerMichael Schroeder <mls@suse.de>2013-05-03 14:15:37 +0200
commit8c79caff33d904d60e639a0cd4394ccb1379b644 (patch)
tree237ca719a95906cb303f1b4063a2cfe6e366dc05 /ext
parentbc8fdea440e595e88a57e0307732fb2158ff390d (diff)
downloadlibsolv-8c79caff33d904d60e639a0cd4394ccb1379b644.tar.gz
libsolv-8c79caff33d904d60e639a0cd4394ccb1379b644.tar.bz2
libsolv-8c79caff33d904d60e639a0cd4394ccb1379b644.zip
fix iso-8859-1 to utf8 transcoding bug
Diffstat (limited to 'ext')
-rw-r--r--ext/repo_rpmdb.c2
-rw-r--r--ext/repo_rpmdb_pubkey.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c
index dea9305..5ed1c4e 100644
--- a/ext/repo_rpmdb.c
+++ b/ext/repo_rpmdb.c
@@ -439,7 +439,7 @@ setutf8string(Repodata *repodata, Id handle, Id tag, const char *str)
if (c >= 0xc0)
{
*bp++ = 0xc3;
- c ^= 0x80;
+ c ^= 0xc0 ^ 0x80;
}
else if (c >= 0x80)
*bp++ = 0xc2;
diff --git a/ext/repo_rpmdb_pubkey.c b/ext/repo_rpmdb_pubkey.c
index 8b6b453..2ca79c7 100644
--- a/ext/repo_rpmdb_pubkey.c
+++ b/ext/repo_rpmdb_pubkey.c
@@ -102,7 +102,7 @@ setutf8string(Repodata *repodata, Id handle, Id tag, const char *str)
if (c >= 0xc0)
{
*bp++ = 0xc3;
- c ^= 0x80;
+ c ^= 0xc0 ^ 0x80;
}
else if (c >= 0x80)
*bp++ = 0xc2;