summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-08-02 15:24:19 +0800
committerPeng Wu <alexepico@gmail.com>2013-08-02 15:24:19 +0800
commite854b0900d4f22b3c5e09127a33eb2967e0705a4 (patch)
tree8d9bb2513f848f8798b4b34778d2e4d8f2319c3c /tests
parentb55f4f4a56406fee6ad0fe45e5bfe5535bee465b (diff)
downloadlibzhuyin-e854b0900d4f22b3c5e09127a33eb2967e0705a4.tar.gz
libzhuyin-e854b0900d4f22b3c5e09127a33eb2967e0705a4.tar.xz
libzhuyin-e854b0900d4f22b3c5e09127a33eb2967e0705a4.zip
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");