diff -BbprN --unified=4 boost_1_47_0/libs/filesystem/v2/src/v2_path.cpp boost_1_47_0_ticket4688/libs/filesystem/v2/src/v2_path.cpp
      
        
          
        
        
          
            | old | new |  | 
        
        
          
            | 29 | 29 | #include <boost/system/error_code.hpp> | 
          
            | 30 | 30 |  | 
          
            | 31 | 31 | #include <cwchar>     // for std::mbstate_t | 
          
            | 32 | 32 |  | 
        
        
          
            | 33 |  | #if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)  | 
          
            |  | 33 | #if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) | 
        
        
          
            | 34 | 34 | # include <boost/filesystem/detail/utf8_codecvt_facet.hpp> | 
          
            | 35 | 35 | #endif | 
          
            | 36 | 36 |  | 
          
            | 37 | 37 |  | 
        
        
          
            | … | … | namespace | 
        
        
          
            | 42 | 42 | // caught. (A previous version was at namespace scope, so initialization | 
          
            | 43 | 43 | // occurred before main(), preventing exceptions from being caught.) | 
          
            | 44 | 44 | std::locale & loc() | 
          
            | 45 | 45 | { | 
        
        
          
            | 46 |  | #if !defined(macintosh) && !defined(__APPLE__) && !defined(__APPLE_CC__)  | 
          
            |  | 46 | #if !defined(macintosh) && !defined(__APPLE__) && !defined(__APPLE_CC__) && !defined(__FreeBSD__) | 
        
        
          
            | 47 | 47 | // ISO C calls this "the locale-specific native environment": | 
          
            | 48 | 48 | static std::locale lc(""); | 
          
            | 49 | 49 | #else  // Mac OS | 
          
            | 50 | 50 | // "All BSD system functions expect their string parameters to be in UTF-8 encoding | 
        
      
    
    
      
      diff -BbprN --unified=4 boost_1_47_0/libs/filesystem/v3/src/path.cpp boost_1_47_0_ticket4688/libs/filesystem/v3/src/path.cpp
      
        
          
        
        
          
            | old | new |  | 
        
        
          
            | 34 | 34 |  | 
          
            | 35 | 35 | #ifdef BOOST_WINDOWS_API | 
          
            | 36 | 36 | # include "windows_file_codecvt.hpp" | 
          
            | 37 | 37 | # include <windows.h> | 
        
        
          
            | 38 |  | #elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)  | 
          
            |  | 38 | #elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) | 
        
        
          
            | 39 | 39 | # include <boost/filesystem/detail/utf8_codecvt_facet.hpp> | 
          
            | 40 | 40 | #endif | 
          
            | 41 | 41 |  | 
          
            | 42 | 42 | #ifdef BOOST_FILESYSTEM_DEBUG | 
        
        
          
            | … | … | namespace | 
        
        
          
            | 733 | 733 | std::locale global_loc = std::locale(); | 
          
            | 734 | 734 | std::locale loc(global_loc, new windows_file_codecvt); | 
          
            | 735 | 735 | return loc; | 
          
            | 736 | 736 |  | 
        
        
          
            | 737 |  | #   elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)  | 
          
            |  | 737 | #   elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) | 
        
        
          
            | 738 | 738 | // "All BSD system functions expect their string parameters to be in UTF-8 encoding | 
          
            | 739 | 739 | // and nothing else." See | 
          
            | 740 | 740 | // http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPInternational/Articles/FileEncodings.html | 
          
            | 741 | 741 | // |