diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cc | 8 | ||||
-rw-r--r-- | src/system.hh.in | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index 218579cf..37203ff4 100644 --- a/src/main.cc +++ b/src/main.cc @@ -35,6 +35,10 @@ // was moved there for the sake of clarity here #include "session.h" +#if HAVE_BOOST_NOWIDE +#include <boost/nowide/args.hpp> +#endif + #ifdef HAVE_EDIT #include <editline/readline.h> #endif @@ -51,6 +55,10 @@ int main(int argc, char * argv[], char * envp[]) { int status = 1; +#if HAVE_BOOST_NOWIDE + boost::nowide::args a(argc, argv); // Fix command-line encoding on Windows +#endif + #if HAVE_BOOST_PYTHON argv0 = argv[0]; #endif diff --git a/src/system.hh.in b/src/system.hh.in index 97b2bead..0cfcf9ed 100644 --- a/src/system.hh.in +++ b/src/system.hh.in @@ -71,6 +71,7 @@ #define HAVE_GPGME @HAVE_GPGME@ #define HAVE_BOOST_REGEX_UNICODE @HAVE_BOOST_REGEX_UNICODE@ #define HAVE_BOOST_159_ISSUE_39 @HAVE_BOOST_159_ISSUE_39@ +#define HAVE_BOOST_NOWIDE @HAVE_BOOST_NOWIDE@ #define DEBUG_MODE @DEBUG_MODE@ #define NO_ASSERTS @NO_ASSERTS@ |