Make path searches case-insensitive on windows.

This commit is contained in:
Jean-Francois Dockes
2016-08-06 12:20:45 +02:00
parent 361d3aa256
commit e0a79455ae
7 changed files with 229 additions and 34 deletions
+5 -4
View File
@@ -22,6 +22,8 @@
#ifndef _WIN32
#include <langinfo.h>
#include <sys/param.h>
#else
#include "wincodepages.h"
#endif
#include <limits.h>
#include "safesysstat.h"
@@ -208,11 +210,10 @@ RclConfig::RclConfig(const string *argcnf)
o_localecharset = string(cstr_cp1252);
}
#else
// This is quite incorrect, when using the non-unicode (utf16)
// interface, Windows will never use utf-8
o_localecharset = "UTF-8";
o_localecharset = winACPName();
#endif
LOGDEB1("RclConfig::getDefCharset: localecharset [" << (o_localecharset) << "]\n" );
LOGDEB1("RclConfig::getDefCharset: localecharset [" <<
o_localecharset << "]\n");
}
const char *cp;