Skip to content

Commit

Permalink
Update charset_converter.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bojidartonchev committed Sep 28, 2023
1 parent 750f688 commit 3b436be
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/plugins/charset_converter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3b436be

Please sign in to comment.