summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-08-13 16:48:32 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-08-13 16:48:32 +0200
commitc25cd050046bd0f0d420938c1bb845f29bf12186 (patch)
tree29300c90151088fecf86b1707086fa7b8d632f69 /apt-pkg/pkgcache.cc
parent4c2f0104d89569e7315b1c1570157c9d2c43161a (diff)
parentf824d95cacb53fc24a775a6a13feb2f8c7ae2ace (diff)
* apt-pkg/pkgcache.cc:
- fix LongDesc handling in LANG=C environment
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r--apt-pkg/pkgcache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc
index bb28a33ca..a66a5198d 100644
--- a/apt-pkg/pkgcache.cc
+++ b/apt-pkg/pkgcache.cc
@@ -894,7 +894,8 @@ pkgCache::DescIterator pkgCache::VerIterator::TranslatedDescription() const
pkgCache::DescIterator Desc = DescDefault;
for (; Desc.end() == false; Desc++)
- if (*l == Desc.LanguageCode())
+ if (*l == Desc.LanguageCode() ||
+ (*l == "en" && strcmp(Desc.LanguageCode(),"") == 0))
break;
if (Desc.end() == true)
Desc = DescDefault;