What steps will reproduce the problem?
1.save a file path contained chinese using MBCS in std::string
2.passing this to leveldb::DB::Open(...)[ options.create_if_missing = true ];
What is the expected output? What do you see instead?
expected:
creating a new DB if not exist or open a DB if exist.
instead:
assert(boost::filesystem::exists(fname)); [file : env_boost.cc line : 409 ]
this break assert.
What version of the product are you using? On what operating system?
version: LevelDB 1.5.0
system : windows xp sp3
Please provide any additional information below.
the std::string using MBCS encoding cann't express all the character on
Windows. Using std::wstring by encoding of UTF-16 or using std::string by
encoding of UTF-8 is a solution on Windows.
Original issue reported on code.google.com by realwan...@gmail.com on 14 Jun 2012 at 6:02
Original issue reported on code.google.com by
realwan...@gmail.com
on 14 Jun 2012 at 6:02