Changeset 293


Ignore:
Timestamp:
01/09/15 05:16:47 (10 years ago)
Author:
Maciej Komosinski
Message:

WIN32 wide char filename encoding takes precedence over MFILE char*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/virtfile/stdiofile.cpp

    r286 r293  
    1212{
    1313        //printFM("Vfopen %s %s",path,mode);
     14#ifdef _WIN32
     15        FILE *f = _wfopen(Convert::utf8ToUtf16(path).c_str(), Convert::strTOwstr(mode).c_str());
     16#else
    1417#ifdef USE_MFILE
    1518        MFILE *f = mfopen(path, mode);
    16 #else
    17 #ifdef _WIN32
    18         FILE *f = _wfopen(Convert::utf8ToUtf16(path).c_str(), Convert::strTOwstr(mode).c_str());
    1919#else
    2020        FILE *f = fopen(path, mode);
Note: See TracChangeset for help on using the changeset viewer.