Skip to content

Commit

Permalink
Fixing strange locale bug on BGQ based systems
Browse files Browse the repository at this point in the history
  • Loading branch information
sithhell committed Feb 14, 2014
1 parent df5b0c1 commit 65ce125
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/hpx_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# include <signal.h>
#endif

#if defined(HPX_NATIVE_MIC)
#if defined(HPX_NATIVE_MIC) || defined(__bgq__)
# include <cstdlib>
#endif

Expand Down Expand Up @@ -988,9 +988,21 @@ namespace hpx
int result = 0;
set_error_handlers();

#if defined(HPX_NATIVE_MIC)
unsetenv("LC_ALL");
#if defined(HPX_NATIVE_MIC) || defined(__bgq__)
unsetenv("LANG");
unsetenv("LC_CTYPE");
unsetenv("LC_NUMERIC");
unsetenv("LC_TIME");
unsetenv("LC_COLLATE");
unsetenv("LC_MONETARY");
unsetenv("LC_MESSAGES");
unsetenv("LC_PAPER");
unsetenv("LC_NAME");
unsetenv("LC_ADDRESS");
unsetenv("LC_TELEPHONE");
unsetenv("LC_MEASUREMENT");
unsetenv("LC_IDENTIFICATION");
unsetenv("LC_ALL");
#endif

try {
Expand Down

0 comments on commit 65ce125

Please sign in to comment.