diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2012-05-20 18:58:37 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2012-05-20 18:58:37 +0200 |
commit | 527df5a20dbe8ce98fcbf1ffe28bb37ff2257a97 (patch) | |
tree | 47e26520c6a88c7a3a77a4e00570964afa87e2f5 /apt-pkg | |
parent | 75f37d7d27c2579ddb88f852087a54934cb00c8b (diff) |
* apt-pkg/aptconfiguration.cc:
- longcode Translation files are saved with encoded underscore,
so make sure to pick these files up as well for Acquire::Languages
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/aptconfiguration.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/aptconfiguration.cc b/apt-pkg/aptconfiguration.cc index 0fd470ed5..d763546f8 100644 --- a/apt-pkg/aptconfiguration.cc +++ b/apt-pkg/aptconfiguration.cc @@ -144,7 +144,7 @@ std::vector<std::string> const Configuration::getLanguages(bool const &All, if (D != 0) { builtin.push_back("none"); for (struct dirent *Ent = readdir(D); Ent != 0; Ent = readdir(D)) { - string const name = Ent->d_name; + string const name = SubstVar(Ent->d_name, "%5f", "_"); size_t const foundDash = name.rfind("-"); size_t const foundUnderscore = name.rfind("_", foundDash); if (foundDash == string::npos || foundUnderscore == string::npos || |