Linux/macOS: print LANG environment variable to console only in DEBUG mode

This commit is contained in:
Mounir IDRASSI 2021-08-21 16:30:04 +02:00
parent fd9412e6ac
commit 0809f456d9
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -70,7 +70,9 @@ namespace VeraCrypt
string filename = filenamePrefix + defaultLang + filenamePost;
if(const char* env_p = getenv("LANG")){
string lang(env_p);
#ifdef DEBUG
std::cout << lang << std::endl;
#endif
if ( lang.size() > 1 ){
int found = lang.find(".");
if ( found > 1 ){