Skip to content

Commit

Permalink
fix is_ubin_char() logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Mar 23, 2024
1 parent 3253e4d commit 2625f2d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion charset.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,12 @@ public int is_composing_char(LWCHAR ch)
*/
public int is_ubin_char(LWCHAR ch)
{
int ubin = is_in_table(ch, &ubin_table) ||
int ubin = FALSE;
if (is_in_table(ch, &user_ubin_table)) return 1;
if (is_in_table(ch, &user_compose_table)) return 0;
if (is_in_table(ch, &user_prt_table)) return 0;
if (is_in_table(ch, &user_wide_table)) return 0;
ubin = is_in_table(ch, &ubin_table) ||
(bs_mode == BS_CONTROL && is_in_table(ch, &fmt_table));
#if MSDOS_COMPILER==WIN32C
if (!ubin && utf_mode == 2 && ch < 0x10000)
Expand Down

0 comments on commit 2625f2d

Please sign in to comment.