summaryrefslogtreecommitdiff
path: root/test/libapt/getlanguages_test.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-11-06 12:50:49 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-11-06 12:50:49 +0100
commit037454791fe7e59b33531b640ac0aced3b2ba6d7 (patch)
treebea9353ce3901cd59a3e6d482201a78652ef0040 /test/libapt/getlanguages_test.cc
parentc1c49795f4ba33e56b5b741f07bba362f4d54c2e (diff)
* apt-pkg/aptconfiguration.cc:
- respect the none-force even in LANG=C (Closes: #602573)
Diffstat (limited to 'test/libapt/getlanguages_test.cc')
-rw-r--r--test/libapt/getlanguages_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libapt/getlanguages_test.cc b/test/libapt/getlanguages_test.cc
index 9a8910b58..14f1af185 100644
--- a/test/libapt/getlanguages_test.cc
+++ b/test/libapt/getlanguages_test.cc
@@ -85,6 +85,12 @@ int main(int argc,char *argv[])
equals(vec.size(), 1);
equals(vec[0], "en");
+ _config->Set("Acquire::Languages", "none");
+ env[0] = "C";
+ vec = APT::Configuration::getLanguages(false, false, env);
+ equals(vec.size(), 0);
+ _config->Set("Acquire::Languages", "");
+
_config->Set("Acquire::Languages::1", "environment");
_config->Set("Acquire::Languages::2", "en");
env[0] = "de_DE.UTF-8";