From 3b436be3605a0d6f98649bf4d578c7a10cc2a0cc Mon Sep 17 00:00:00 2001 From: Bozhidar Tonchev Date: Thu, 28 Sep 2023 12:06:41 +0300 Subject: [PATCH] Update charset_converter.c --- src/plugins/charset_converter.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/charset_converter.c b/src/plugins/charset_converter.c index 103c4d6b..90ef57ee 100644 --- a/src/plugins/charset_converter.c +++ b/src/plugins/charset_converter.c @@ -150,15 +150,17 @@ static int on_available_charsets(struct platch_obj *object, FlutterPlatformMessa break; } - //values.list[index].type = kStdString; - //list[index].string_value = strtok(output, "/"); + values.list[index].type = kStdString; + values.list[index].string_value = strtok(output, "/"); + + LOG_ERROR("=====%d.%s\n", index, STDVALUE_AS_STRING(values.list[index])); } pclose(fp); free(output); for (int i = 0; i < 0; i++) { - LOG_ERROR("%d.%s\n", i, STDVALUE_AS_STRING(values.list[i])); + LOG_ERROR("!!!!!%d.%s\n", i, STDVALUE_AS_STRING(values.list[i])); } return 0;