diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-08-13 16:42:38 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-08-13 16:42:38 +0200 |
commit | f824d95cacb53fc24a775a6a13feb2f8c7ae2ace (patch) | |
tree | 29300c90151088fecf86b1707086fa7b8d632f69 /apt-pkg/pkgcache.cc | |
parent | 09a10f9cd2661d28b2ff53d59a0936563cfe1cf7 (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.cc | 3 |
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; |