VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-21 16:30:04 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-21 19:18:28 +0200
commit0809f456d9e9f8bc480f9cab16cd5b7656185c06 (patch)
tree0e1f6ec3c934008fbc8a7f310b0fb43d5fb4770a /src
parentfd9412e6ac438b1da5bcbe851182b614deba17a6 (diff)
downloadVeraCrypt-0809f456d9e9f8bc480f9cab16cd5b7656185c06.tar.gz
VeraCrypt-0809f456d9e9f8bc480f9cab16cd5b7656185c06.zip
Linux/macOS: print LANG environment variable to console only in DEBUG mode
Diffstat (limited to 'src')
-rw-r--r--src/Main/Resources.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Main/Resources.cpp b/src/Main/Resources.cpp
index 6ba63c52..d9a787a5 100644
--- a/src/Main/Resources.cpp
+++ b/src/Main/Resources.cpp
@@ -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 ){