Ignore:
Timestamp:
04/23/15 03:18:25 (8 years ago)
Author:
Maciej Komosinski
Message:

Under _WIN32, mfopen() now redirects to a function mfile_wfopen() that converts arguments to wide char and then uses _wfopen()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/stl-util.cpp

    r372 r374  
    9292#endif
    9393        {
    94 #ifdef _WIN32
    95                 MFILE *f = mfopen(Convert::utf8ToUtf16(filename).c_str(), Convert::strTOwstr(FOPEN_READ_BINARY).c_str());
    96 #else
    9794                MFILE *f = mfopen(filename, FOPEN_READ_BINARY);
    98 #endif
    9995                if (f)
    10096                {
     
    124120bool writeCompleteFile(const char* filename, const string& text, bool warn_on_fail)
    125121{
    126 #ifdef _WIN32
    127         MFILE *f = mfopen(Convert::utf8ToUtf16(filename).c_str(), Convert::strTOwstr(FOPEN_WRITE_BINARY).c_str());
    128 #else
    129122        MFILE *f = mfopen(filename, FOPEN_WRITE_BINARY);
    130 #endif
    131123        bool ok = f != NULL;
    132124        if (f)
Note: See TracChangeset for help on using the changeset viewer.