summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/FStream.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-19 12:02:06 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-19 12:02:06 (GMT)
commit697a5d64d86d73b1353a90a5bfc9f444b97fedd7 (patch)
tree9780e3e1266b0d5231d1904f45808214ae9be5ba /Source/kwsys/FStream.hxx.in
parent3d3144bb023a98392594038973576cfbf046c039 (diff)
parent5785482ce0be9187ff94c1042f8978d2f11285e8 (diff)
downloadCMake-697a5d64d86d73b1353a90a5bfc9f444b97fedd7.zip
CMake-697a5d64d86d73b1353a90a5bfc9f444b97fedd7.tar.gz
CMake-697a5d64d86d73b1353a90a5bfc9f444b97fedd7.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2017-04-19 (9f6ffaff)
Diffstat (limited to 'Source/kwsys/FStream.hxx.in')
-rw-r--r--Source/kwsys/FStream.hxx.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/FStream.hxx.in b/Source/kwsys/FStream.hxx.in
index d4bc6c9..a4c65fe 100644
--- a/Source/kwsys/FStream.hxx.in
+++ b/Source/kwsys/FStream.hxx.in
@@ -33,7 +33,7 @@ public:
typedef std::basic_filebuf<CharType, Traits> my_base_type;
basic_filebuf* open(char const* s, std::ios_base::openmode mode)
{
- const std::wstring wstr = Encoding::ToWide(s);
+ const std::wstring wstr = Encoding::ToWindowsExtendedPath(s);
return static_cast<basic_filebuf*>(my_base_type::open(wstr.c_str(), mode));
}
#endif
@@ -93,7 +93,7 @@ public:
#if defined(_MSC_VER)
const bool success = buf_->open(file_name, mode) != 0;
#else
- const std::wstring wstr = Encoding::ToWide(file_name);
+ const std::wstring wstr = Encoding::ToWindowsExtendedPath(file_name);
bool success = false;
std::wstring cmode = getcmode(mode);
file_ = _wfopen(wstr.c_str(), cmode.c_str());