diff --git a/src/nhttpd/tuxboxapi/neutrinoapi.cpp b/src/nhttpd/tuxboxapi/neutrinoapi.cpp index 7fa85786c..d47979b70 100644 --- a/src/nhttpd/tuxboxapi/neutrinoapi.cpp +++ b/src/nhttpd/tuxboxapi/neutrinoapi.cpp @@ -18,6 +18,7 @@ #include #include #include +#include // tuxbox #include @@ -67,10 +68,13 @@ extern CZapitClient::SatelliteList satList; //static std::map iso639; #ifndef initialize_iso639_map +#define ISO_639_TAB DATADIR "/iso-codes/iso-639.tab" +static const char * iso639filename = ISO_639_TAB; + bool _initialize_iso639_map(void) { std::string s, t, u, v; - std::ifstream in("/share/iso-codes/iso-639.tab"); + std::ifstream in(iso639filename); if (in.is_open()) { while (in.peek() == '#') @@ -86,7 +90,10 @@ bool _initialize_iso639_map(void) return true; } else + { + std::cout << "[neutrinoapi.cpp] Loading " << iso639filename << " failed." << std::endl; return false; + } } #endif //-----------------------------------------------------------------------------