Ticket #4688: boost_filesystem.2.patch

File boost_filesystem.2.patch, 934 bytes (added by Gennady Proskurin <gpr@…>, 12 years ago)
  • libs/filesystem/v2/src/v2_path.cpp

    diff --git a/libs/filesystem/v2/src/v2_path.cpp b/libs/filesystem/v2/src/v2_path.cpp
    index 7adeaff..027b299 100644
    a b namespace  
    4545  {
    4646#if !defined(macintosh) && !defined(__APPLE__) && !defined(__APPLE_CC__)
    4747    // ISO C calls this "the locale-specific native environment":
    48     static std::locale lc("");
     48    static std::locale lc;
    4949#else  // Mac OS
    5050    // "All BSD system functions expect their string parameters to be in UTF-8 encoding
    5151    // and nothing else."
  • libs/filesystem/v3/src/path.cpp

    diff --git a/libs/filesystem/v3/src/path.cpp b/libs/filesystem/v3/src/path.cpp
    index 7dc0b53..213ca36 100644
    a b namespace  
    760760
    761761#   else
    762762    // ISO C calls this "the locale-specific native environment":
    763     return std::locale("");
     763    return std::locale();
    764764
    765765#   endif
    766766  }