]> git.saurik.com Git - apt.git/commitdiff
In the C locale, let's avoid any crazy transforms. cydia_1.1.28%b2
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 30 Dec 2016 05:22:25 +0000 (21:22 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 30 Dec 2016 05:22:25 +0000 (21:22 -0800)
apt-pkg/deb/debrecords.cc

index 04a2df4a554e557876acd14c42a1c6e780238b84..696c55e6a12497bcd8ee838a77355e7132565fe3 100644 (file)
@@ -162,7 +162,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;