summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-12-29 21:22:25 -0800
committerSam Bingner <sam@bingner.com>2019-08-17 12:41:40 -1000
commit1265520d34363e67008750c4f351bedf4855ad51 (patch)
tree5f2522cea57679fc36832d9a20864bf59be3e210
parentc98938eaf9a0cf3fa67e2b50b1433334a60ed1c8 (diff)
In the C locale, let's avoid any crazy transforms.
-rw-r--r--apt-pkg/deb/debrecords.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/debrecords.cc b/apt-pkg/deb/debrecords.cc
index 62e13c842..360000479 100644
--- a/apt-pkg/deb/debrecords.cc
+++ b/apt-pkg/deb/debrecords.cc
@@ -160,7 +160,7 @@ string debRecordParserBase::LongDesc(std::string const &lang)
}
char const * const codeset = nl_langinfo(CODESET);
- if (strcmp(codeset,"UTF-8") != 0) {
+ if (strcmp(codeset,"US-ASCII") != 0 && strcmp(codeset,"UTF-8") != 0) {
string dest;
UTF8ToCodeset(codeset, orig, &dest);
return dest;