From: junkyu han Date: Mon, 31 Oct 2016 12:09:33 +0000 (+0900) Subject: Fix wrong logic for converting language X-Git-Tag: submit/tizen_3.0/20161108.042649^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7eeaed28810465c9a9287d302e217c0c8eb9394e;p=profile%2Fmobile%2Fapps%2Fnative%2Fhomescreen-efl.git Fix wrong logic for converting language Change-Id: I382157b3c5dfeb1de440d459926a24df357c53e7 --- diff --git a/src/add_widget_viewer/add_widget_viewer.c b/src/add_widget_viewer/add_widget_viewer.c index 3a10dcb..881ce92 100755 --- a/src/add_widget_viewer/add_widget_viewer.c +++ b/src/add_widget_viewer/add_widget_viewer.c @@ -337,7 +337,7 @@ static int __add_widget_viewer_compare_index_cb(const void *data1, const void *d return -1; } i18n_ucollator_set_strength(collator_h, I18N_UCOLLATOR_PRIMARY); - i18n_ustring_from_UTF8(uchar_label, 64, &uchar_label_len, w->label, uchar_index_len, &error); + i18n_ustring_from_UTF8(uchar_label, 64, &uchar_label_len, w->label, strlen(w->label), &error); i18n_ucollator_destroy(collator_h); return uchar_index[0] - toupper(uchar_label[0]);