Commit | Line | Data |
---|---|---|
68faa04f FF |
1 | diff -u -r ../apt-1.1.3/apt-pkg/deb/debrecords.cc ./apt-pkg/deb/debrecords.cc |
2 | --- ../apt-1.1.3/apt-pkg/deb/debrecords.cc 2015-11-30 03:08:24.000000000 -0500 | |
3 | +++ ./apt-pkg/deb/debrecords.cc 2015-12-03 16:30:51.506746167 -0500 | |
4 | @@ -25,7 +25,9 @@ | |
5 | #include <sstream> | |
6 | #include <string> | |
7 | #include <vector> | |
8 | +#ifndef __ANDROID__ | |
9 | #include <langinfo.h> | |
10 | +#endif | |
11 | ||
12 | #include <apti18n.h> | |
13 | /*}}}*/ | |
14 | @@ -143,12 +145,14 @@ | |
15 | orig = Section.FindS("Description"); | |
16 | } | |
17 | ||
18 | +#ifndef __ANDROID__ | |
19 | char const * const codeset = nl_langinfo(CODESET); | |
20 | if (strcmp(codeset,"UTF-8") != 0) { | |
21 | string dest; | |
22 | UTF8ToCodeset(codeset, orig, &dest); | |
23 | return dest; | |
24 | } | |
25 | +#endif | |
26 | ||
27 | return orig; | |
28 | } |