diff options
author | Peng Wu <alexepico@gmail.com> | 2013-07-26 12:35:46 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-07-26 12:35:46 +0800 |
commit | 8abc8cfd97cfe63c8e26e0838d4c825283b30630 (patch) | |
tree | 9f1711f61e2efe3d9e63eb21ded03e96e9bd2a1d /tests | |
parent | 3a2461b45a39d21cd9a92129327d055b1eed2927 (diff) | |
download | libpinyin-8abc8cfd97cfe63c8e26e0838d4c825283b30630.tar.gz libpinyin-8abc8cfd97cfe63c8e26e0838d4c825283b30630.tar.xz libpinyin-8abc8cfd97cfe63c8e26e0838d4c825283b30630.zip |
Force to use C locale to load table.conf
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_table_info.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/storage/test_table_info.cpp b/tests/storage/test_table_info.cpp index 68b4735..5781c97 100644 --- a/tests/storage/test_table_info.cpp +++ b/tests/storage/test_table_info.cpp @@ -20,10 +20,13 @@ */ #include <stdio.h> +#include <locale.h> #include "pinyin_internal.h" int main(int argc, char * argv[]) { + setlocale(LC_ALL, ""); + SystemTableInfo system_table_info; bool retval = system_table_info.load("../../data/table.conf"); |