termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
1.96k stars 301 forks source link

buggy unicode characters input #377

Closed kde-yyds closed 1 year ago

kde-yyds commented 1 year ago

https://github.com/termux/termux-x11/assets/106876912/603d06d0-bdcb-46d1-ab4d-ec39c832e4b5

twaik commented 1 year ago

I do not understand Chinese...

kde-yyds commented 1 year ago

just type a lot ofcharacters at the same time or paste some from the keyboard '逸一时误一世' '只因你太美'

kde-yyds commented 1 year ago

Screenshot_2023-07-18-20-59-26-782_com.termux.x11.jpg

the effect is like this

2096779623 commented 1 year ago

just type a lot ofcharacters at the same time or paste some from the keyboard '逸一时误一世' '只因你太美'

Do not use some Chinese characteristic words to give examples to foreigners, this bug can also be reproduced on vnc.

kde-yyds commented 1 year ago

what examples can i give?

2096779623 commented 1 year ago

what examples can i give?

Such as 测测试试, 测试一下 and 一二三四 .

kde-yyds commented 1 year ago

maybe it's a bug of wps office.i cannot reproduce it in any other editors

kde-yyds commented 1 year ago

wps is a non-free software and we cannot modify it. maybe as a workaround we can limit input speed? it means termux-x11 should wait for some milliseconds between sending each character

2096779623 commented 1 year ago

maybe it's a bug of wps office.i cannot reproduce it in any other editors

I can also reproduce this bug when using icalingua++, or try the telegram linux client.

kde-yyds commented 1 year ago

yes. i can also reproduce it in electron apps

twaik commented 1 year ago

I can add 30 msec delay between sending each symbol.

twaik commented 1 year ago

Check again with the latest build.

kde-yyds commented 1 year ago

but that is waiting before sending all characters, not waiting between sending each character @twaik

(the build does not fix this,i changed it into 1 second and found it

https://github.com/termux/termux-x11/assets/106876912/558478c6-933b-45df-a37c-d42222d99217

twaik commented 1 year ago

Stop pinging me, I see all messages in termux repos.

twaik commented 1 year ago

Where and what did you change?

twaik commented 1 year ago

Try again the latest build.

kde-yyds commented 1 year ago

i changed usleep(30000); into usleep(1000000); and then built it

twaik commented 1 year ago

Yeah, I forgot to make it flush connection before calling usleep.

kde-yyds commented 1 year ago

it works well. thanks