From 4528f35bc0ad179177aa67ad4cc896f6d5121b32 Mon Sep 17 00:00:00 2001 From: AndylgTom Date: Tue, 28 Feb 2017 16:06:03 +0700 Subject: [PATCH] Update Config.xsp (#50) For fix to display Unicode in category --- xs/xsp/Config.xsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/xsp/Config.xsp b/xs/xsp/Config.xsp index a2db75999..1add8749c 100644 --- a/xs/xsp/Config.xsp +++ b/xs/xsp/Config.xsp @@ -129,7 +129,7 @@ print_config_def() (void)hv_stores( hv, "label", newSVpvn_utf8(optdef->label.c_str(), optdef->label.length(), true) ); if (!optdef->full_label.empty()) (void)hv_stores( hv, "full_label", newSVpvn_utf8(optdef->full_label.c_str(), optdef->full_label.length(), true) ); - (void)hv_stores( hv, "category", newSVpvn(optdef->category.c_str(), optdef->category.length()) ); + (void)hv_stores( hv, "category", newSVpvn_utf8(optdef->category.c_str(), optdef->category.length(), true) ); (void)hv_stores( hv, "tooltip", newSVpvn_utf8(optdef->tooltip.c_str(), optdef->tooltip.length(), true) ); (void)hv_stores( hv, "sidetext", newSVpvn_utf8(optdef->sidetext.c_str(), optdef->sidetext.length(), true) ); (void)hv_stores( hv, "cli", newSVpvn(optdef->cli.c_str(), optdef->cli.length()) );