rocksdb/port/win
Wilfried Goesgens 5d809ecef7 Add compile time option to work with utf8 filename strings (#4469)
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
2018-10-11 23:24:28 -07:00
..
env_default.cc run make format for PR 3838 (#3954) 2018-06-05 12:58:02 -07:00
env_win.cc Add compile time option to work with utf8 filename strings (#4469) 2018-10-11 23:24:28 -07:00
env_win.h Add path to WritableFileWriter. (#4039) 2018-08-23 10:12:58 -07:00
io_win.cc Support pragma once in all header files and cleanup some warnings (#4339) 2018-09-05 18:13:31 -07:00
io_win.h Fix typos in comments (#4456) 2018-10-04 20:46:50 -07:00
port_win.cc Add compile time option to work with utf8 filename strings (#4469) 2018-10-11 23:24:28 -07:00
port_win.h Add compile time option to work with utf8 filename strings (#4469) 2018-10-11 23:24:28 -07:00
win_jemalloc.cc Reformatting some recent changes (#4161) 2018-07-20 14:43:38 -07:00
win_logger.cc Windows cumulative patch 2018-03-06 11:57:43 -08:00
win_logger.h Windows cumulative patch 2018-03-06 11:57:43 -08:00
win_thread.cc CloseHandle docs says that the return is non-zero, does not say TRUE(1) 2018-03-20 18:43:02 -07:00
win_thread.h Fix a race condition in WindowsThread (port::Thread) 2017-12-07 13:42:53 -08:00
xpress_win.cc Enable cacheline_aligned_alloc() to allocate from jemalloc if enabled. 2017-10-27 13:27:12 -07:00
xpress_win.h Change RocksDB License 2017-07-15 16:11:23 -07:00