diff options
Diffstat (limited to 'cpp/src/Freeze/MapDb.cpp')
-rw-r--r-- | cpp/src/Freeze/MapDb.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/Freeze/MapDb.cpp b/cpp/src/Freeze/MapDb.cpp index 1978575c40a..408d3ea19d6 100644 --- a/cpp/src/Freeze/MapDb.cpp +++ b/cpp/src/Freeze/MapDb.cpp @@ -14,6 +14,8 @@ #include <Freeze/CatalogIndexList.h> #include <algorithm> +#include <Ice/StringConverter.h> + using namespace std; using namespace Ice; using namespace Freeze; @@ -179,7 +181,8 @@ Freeze::MapDb::MapDb(const ConnectionIPtr& connection, { flags |= DB_CREATE; } - open(txn, _dbName.c_str(), 0, DB_BTREE, flags, FREEZE_DB_MODE); + + open(txn, Ice::nativeToUTF8(_communicator, _dbName).c_str(), 0, DB_BTREE, flags, FREEZE_DB_MODE); StringSeq oldIndices; @@ -420,7 +423,8 @@ Freeze::MapDb::MapDb(const Ice::CommunicatorPtr& communicator, const string& dbN } u_int32_t flags = DB_THREAD | DB_CREATE | DB_AUTO_COMMIT; - open(0, _dbName.c_str(), 0, DB_BTREE, flags, FREEZE_DB_MODE); + + open(0, Ice::nativeToUTF8(_communicator, _dbName).c_str(), 0, DB_BTREE, flags, FREEZE_DB_MODE); } catch(const ::DbException& dx) { |