]> git.saurik.com Git - apt.git/blobdiff - test/libapt/getlanguages_test.cc
* apt-pkg/aptconfiguration.cc:
[apt.git] / test / libapt / getlanguages_test.cc
index 9a8910b586930c0367a59e9a5011a421bd00e064..14f1af185bbca0cbaa2e389625effcdcf9b8e95a 100644 (file)
@@ -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";