-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
grep and sed stopped handling non-ASCII patterns #6429
Comments
|
Nothing to do with |
it's a gnulib issue... looking into it... |
This looks like a duplicate of #5171. |
Yeah, you're right. However, this here is more an attempt to narrow down the source of the bug to a change between Termux release v0.90 and v0.92. |
@xeffyr, @landfillbaby, not sure if this one is related, but what about b20be8a (docker image: install locales and configure en_US.UTF-8 as default)? |
again i'm pretty sure it's because of gnulib
|
Warnings about unconfigured locale when running some utilities. Nothing to do with package compilation and build environment locales do not affect Termux packages anyway.
I don't know what was happening in 2016, but most likely dropping "unneeded" steps in Dockerfile. Locales on their own aren't needed if you don't use Docker image for something more than just running package compiler. |
This comment has been minimized.
This comment has been minimized.
deleted: .scripts/maintenance/upr.sh deleted: .scripts/maintenance/vgen.sh deleted: buildAPKs/maintenance/.up.sh.swp
This comment has been minimized.
This comment has been minimized.
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have noticed that this behavior disappears from There are several confvars that may be guessed differently for For
For
I guess some of them affect the behavior. I'm going to narrow them down. |
Problem description
When running
grep
orsed
with patterns containing a non-ASCII character, then no matches will be found in the text.The same issue was reported in #6401 last week.
So I've checked old versions and found that this bug was introduced in termux v0.92 (almost exactly one year ago).
In prior versions it worked as expected!
Steps to reproduce
I've executed these commands each in a clean Termux without upgrading the packages (resp. only with
perl
installed).Expected behavior
In other environments
grep
andsed
have no problems with non-ASCII characters inside regular expressions.Workarounds using
perl
or perl-regexp are normally not necessary and in some cases not feasible at all.Additional information
The text was updated successfully, but these errors were encountered: