[asterisk-scf-commits] asterisk-scf/release/logger.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Mar 8 17:03:14 CST 2012


branch "master" has been updated
       via  8e2926240116cb660ce80b7d129fb84bd20f781e (commit)
      from  fb00b2fd21f879b34dd658c9cd62e77dc12be184 (commit)

Summary of changes:
 client/src/LogFormatter.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 8e2926240116cb660ce80b7d129fb84bd20f781e
Author: David M. Lee <dlee at digium.com>
Date:   Thu Mar 8 17:02:19 2012 -0600

    Fix for Windows + newer Boost.
    
    Turns out that .native() on Windows returns a wstring instead of a narrow
    string. Using the .string() function works much better (go figure).

diff --git a/client/src/LogFormatter.cpp b/client/src/LogFormatter.cpp
index a45112e..126af87 100644
--- a/client/src/LogFormatter.cpp
+++ b/client/src/LogFormatter.cpp
@@ -79,7 +79,7 @@ string AsteriskSCF::System::Logging::sourceInfoStr(const string& fmt, unsigned i
 	    // the #if, but it would sometimes quote the filename, which is
 	    // uncool.
 #if BOOST_FILESYSTEM_VERSION >= 3
-            basename = p.filename().native();
+            basename = p.filename().string();
 #else
 	    basename = p.filename();
 #endif

-----------------------------------------------------------------------


-- 
asterisk-scf/release/logger.git



More information about the asterisk-scf-commits mailing list