diff options
| author | Weixuan XIAO <veyx.shaw@gmail.com> | 2020-11-22 19:02:36 +0100 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2020-11-26 11:00:51 +0800 |
| commit | 76108f9b60e521af2d716b22dd5dd99d62609e72 (patch) | |
| tree | 235f28e9cde82a342cf47390e4eb3e079002cb76 /tests/include/test_memory_chunk.cpp | |
| parent | f1e88a707de818277e937fb77d3d9c737e470377 (diff) | |
| download | libpinyin-76108f9b60e521af2d716b22dd5dd99d62609e72.tar.gz libpinyin-76108f9b60e521af2d716b22dd5dd99d62609e72.tar.xz libpinyin-76108f9b60e521af2d716b22dd5dd99d62609e72.zip | |
Fix delimiter for reading table files on macOS
On macOS under llvm/clang++, the default delimiter for format string is
weird: it cannot read full CJK characters from the table files.
This patch adds macOS-specified code to make "\t" and " " the implicit
delimiter.
Ref:
https://stackoverflow.com/questions/12885628/changing-the-scanf-delimiter
Diffstat (limited to 'tests/include/test_memory_chunk.cpp')
0 files changed, 0 insertions, 0 deletions
