summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-07-26 12:35:46 +0800
committerPeng Wu <alexepico@gmail.com>2013-07-26 12:35:46 +0800
commit8abc8cfd97cfe63c8e26e0838d4c825283b30630 (patch)
tree9f1711f61e2efe3d9e63eb21ded03e96e9bd2a1d /tests
parent3a2461b45a39d21cd9a92129327d055b1eed2927 (diff)
downloadlibpinyin-8abc8cfd97cfe63c8e26e0838d4c825283b30630.zip
libpinyin-8abc8cfd97cfe63c8e26e0838d4c825283b30630.tar.gz
libpinyin-8abc8cfd97cfe63c8e26e0838d4c825283b30630.tar.xz
Force to use C locale to load table.conf
Diffstat (limited to 'tests')
-rw-r--r--tests/storage/test_table_info.cpp3
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");