From 5931e849158021dc2daed76025438fc1575504c0 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 11 Mar 2017 01:55:26 +0800 Subject: [PATCH] Lang is a string, not a char array. The size are not fixed, and not works under Win32. --- src/alfons/langHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alfons/langHelper.cpp b/src/alfons/langHelper.cpp index b3acd45..4661c0f 100644 --- a/src/alfons/langHelper.cpp +++ b/src/alfons/langHelper.cpp @@ -21,7 +21,7 @@ namespace alfons { const std::string DEFAULT_LANGUAGES = "en:zh-cn"; // GIVING PRIORITY (BY DEFAULT) TO CHINESE OVER JAPANESE struct HBScriptForLang { - const char lang[7]; + const char *lang; hb_script_t scripts[3]; };