Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: grep can not regex Chinese characters. #7517

Closed
zixijian opened this issue Sep 13, 2021 · 4 comments
Closed

[Bug]: grep can not regex Chinese characters. #7517

zixijian opened this issue Sep 13, 2021 · 4 comments

Comments

@zixijian
Copy link

Problem description

echo 中文 | grep 中文
there is noting happen,it shuld be print 中文.
This caused me to delete a large number of files by mistake when I used grep -v whitelist to delete files.

Steps to reproduce the behavior.

echo 中文 | grep 中文

What is the expected behavior?

Under normal Ubuntu, grep can be matched to Chinese.

System information

  • Termux application version:0.117
  • Android OS version:11
  • Device model:Redmi Note 9 Pro(gauguin).
@zixijian zixijian changed the title [Bug]: grep can note regex Chinese characters. [Bug]: grep can not regex Chinese characters. Sep 13, 2021
@Grimler91 Grimler91 transferred this issue from termux/termux-app Sep 13, 2021
@Grimler91
Copy link
Member

Grimler91 commented Sep 13, 2021

Most likely same issue as in #5171

@zixijian
Copy link
Author

zixijian commented Sep 13, 2021

Most likely same issue as in https://github.com/termux/termux-packages/issues/51711

404..should be #5171

@Grimler91
Copy link
Member

Most likely same issue as in https://github.com/termux/termux-packages/issues/51711

404..should be #5171

Thanks. As mentioned in the issue grep works fine if compiled on device, so there has to be some configure option causing it

@zixijian
Copy link
Author

zixijian commented Sep 13, 2021

Most likely same issue as in https://github.com/termux/termux-packages/issues/51711

404..should be #5171

Thanks. As mentioned in the issue grep works fine if compiled on device, so there has to be some configure option causing it

ok,I tried to compile the latest version in Termux,but failed.
I have used the version 3.1 in Ubuntu, and after recompilation, it can work normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants