Skip to content

Commit

Permalink
Fix file dialog/CCK showing garbage text in Chinese
Browse files Browse the repository at this point in the history
  • Loading branch information
bvschaik committed Jun 1, 2020
1 parent 605e500 commit 66cba13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,11 @@ void encoding_from_utf8(const char *input, uint8_t *output, int output_length)
if (!data.to_utf8_table) {
if (data.encoding == ENCODING_KOREAN) {
encoding_korean_from_utf8(input, output, output_length);
return;
} else {
//encoding_multibyte_from_utf8(data.encoding, input, output, output_length);
}
return;
// return;
}

const uint8_t *max_output = &output[output_length - 1];
Expand Down

1 comment on commit 66cba13

@bvschaik
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proper fix is upcoming, when Chinese characters are fully supported

Please sign in to comment.