Skip to content

Commit

Permalink
Linux/macOS: print LANG environment variable to console only in DEBUG…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
idrassi committed Aug 21, 2021
1 parent fd9412e commit 0809f45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Main/Resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ){
Expand Down

0 comments on commit 0809f45

Please sign in to comment.