id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 8860,Logically dead code in default_locale.cpp,Gaurav Gupta ,Artyom Beilis,"In file : http://svn.boost.org/svn/boost/trunk/libs/locale/src/util/default_locale.cpp {{{ std::string get_system_locale(bool use_utf8) { char const *lang = 0; if(!lang || !*lang) lang = getenv(""LC_CTYPE""); -----------Some Code ------------------ }}} Here lang is initialized to 0.So, In condition (!lang || !*lang) (!lang) is always true, the condition (!*lang) will never be reached and hence dead-code. Modify the condition as below : {{{ if(!lang) lang = getenv(""LC_CTYPE""); }}} ",Bugs,closed,To Be Determined,locale,Boost 1.54.0,Optimization,wontfix,,