소스 검색

In the C locale, let's avoid any crazy transforms.

Jay Freeman (saurik) 9 년 전
부모
커밋
22c5f99a61
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apt-pkg/deb/debrecords.cc

+ 1 - 1
apt-pkg/deb/debrecords.cc

@@ -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;