• W
    Add compile time option to work with utf8 filename strings (#4469) · 5d809ece
    Wilfried Goesgens 提交于
    Summary:
    The default behaviour of rocksdb is to use the `*A(` windows API functions.
    These accept filenames in the currently configured system encoding,
    be it Latin 1, utf8 or whatever.
    If the Application intends to completely work with utf8 strings internally,
    converting these to that codepage properly isn't even always possible.
    Thus this patch adds a switch to use the `*W(` functions, which accept
    UTF-16 filenames, and uses C++11 features to translate the
    UTF8 containing std::string to an UTF16 containing std::wstring.
    
    This feature is a compile time options, that can be enabled by setting `WITH_WINDOWS_UTF8_FILENAMES` to true.
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/4469
    
    Differential Revision: D10356011
    
    Pulled By: yiwu-arbug
    
    fbshipit-source-id: 27b6ae9171f209085894cdf80069e8a896642044
    5d809ece
CMakeLists.txt 36.3 KB