-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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, sed and spanish accents #5171
Comments
It works in Android's native version of grep |
They still haven't solved that nonsense, disappointing. |
Btw, is there a good reason the native Android apps are not in $PATH by default? |
Want to have /system/bin in $PATH, configure it in ~/.bashrc or what is being loaded by your shell.
It is essential package and included as dependency in other essential/non-essential packages. Deleting it will simply cause serious dependency tree breakage which will lead to issues with package manager. |
At least my Samsung Galaxy has accessible binaries in /vendor/bin, but that might not be the same for every phone. But besides that, you make some very good points, xeffyr. Let's hope the bug gets fixed in a future release then. |
This comment has been minimized.
This comment has been minimized.
@xeffyr @Grimler91 @fornwall Is/was there a reason that grep and sed aren't linked against libiconv instead of / in addition to libandroid-support? |
Probably just historic reasons, we relied on the limited libiconv (and zlib) functionality from android's libraries for many years Simply linking against libiconv does not have an effect on this issue though, the resulting |
Right, I thought it was relevant because when I just built grep on device and it worked as oppose to the repo build. But then I disable iconv and it still works. (With or without libandroid-support linkage) Interestingly, I notice that the on-device build has linkage to libdl while the repo build does not. Not sure if that's relevant. On my device:
|
So is there any temporary solution? |
|
Can use 3.1 version.
|
@zixijian: it's not specific to the 3.1 version. Building 3.6 from source works fine as well and builds a working grep. Building 3.7 (the version currently shipped by termux) doesn't compile without patches for me. The I also don't know if termux packages use any specific flags for |
For grep, just --prefix=$PREFIX basically (without it you won't be able to |
Problem description
grep and sed don't work with spanish accent. For example, "echo camión|grep camión", the terminal cannot find anything.
Steps to reproduce
grep (v.3.4)
echo "camión"|grep "camión"
the terminal cannot find anything.
In sed (4.8) doesn't work either.
echo camión|sed s/'ó'/'\'"'o"/g
Could it be a problem of variable LANG?
Expected behavior
echo "camión"|grep "camión"
Reply: camión
echo camión|sed s/'ó'/'\'"'o"/g
Reply: camion
Additional information
Updatable packages:
git/stable 2.26.1 aarch64 [upgradable from: 2.26.0]
Android version:
9
Kernel build information:
Linux localhost 4.4.148-perf+ #1 SMP PREEMPT Wed May 22 10:44:11 2019 aarch64 Android
Device manufacturer:
Sony
Device model:
G8141
The text was updated successfully, but these errors were encountered: