diff --git a/include/libint2/basis.h.in b/include/libint2/basis.h.in index 9c6b10830..d38b8ba21 100644 --- a/include/libint2/basis.h.in +++ b/include/libint2/basis.h.in @@ -466,7 +466,12 @@ namespace libint2 { static std::vector> read_g94_basis_library(std::string file_dot_g94, bool force_cartesian_d = false, bool throw_if_missing = true, - std::string locale_name = std::string("POSIX")) { +#ifdef _MSC_VER + std::string locale_name = std::string("en-US") +#else + std::string locale_name = std::string("POSIX") // "en_US" +#endif + ) { std::locale locale(locale_name.c_str()); // TODO omit c_str() with up-to-date stdlib std::vector> ref_shells(118); // 118 = number of chemical elements