| Summary: | busybox line editing is not UTF-8 compatible | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Andre Klapper <a9016009> |
| Component: | Standard Compliance | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| URL: | https://bugs.maemo.org/show_bug.cgi?id=2918 | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | Fix (already applied to 1.15.x git tree) | ||
|
Description
Andre Klapper
2009-01-13 16:21:05 UTC
Anybody alive at all? Haven't seen *any* comments on *any* Busybox bugs filed here at all... msh is not likely to be fixed in that regrd, it abuses 7th bit in characters for it's evil purposes. There was no active work on msh in months. ash and hush are more active. It's tentatively planned to improve hush to the point where it surpasses msh. Of course, if someone will start hacking on msh and fixing its problems, it will be gladly accepted. Maemo ships ash, not msh. Sorry for not adding that info in the initial comment. Maemo Version 4.1 (Diablo) / Busybox 1.6.1: CONFIG_FEATURE_SH_IS_ASH=y # CONFIG_FEATURE_SH_IS_HUSH is not set # CONFIG_FEATURE_SH_IS_LASH is not set # CONFIG_FEATURE_SH_IS_MSH is not set # CONFIG_FEATURE_SH_IS_NONE is not set CONFIG_ASH=y Maemo Version 5.0alpha (Fremantle) / Busybox 1.10.2: CONFIG_FEATURE_SH_IS_ASH=y # CONFIG_FEATURE_SH_IS_HUSH is not set # CONFIG_FEATURE_SH_IS_MSH is not set # CONFIG_FEATURE_SH_IS_NONE is not set CONFIG_ASH=y "Furthermore, the issue is in libbb/lineedit.c which is linked into all four sh variants (and fdisk, although maemo doesn't ship that and it doesn't need to handle non-ASCII input anyway). Fix one, fix all." From https://bugs.maemo.org/show_bug.cgi?id=2918#c17 : FYI, this is from the busybox TODO file: > The low hanging fruit is UTF-8 character set support. We should do this. > (Vodz pointed out the shell's cmdedit as needing work here. What else?) and there is some work along those lines in ftp://ftp.simtreas.ru/pub/my/bb/ (although it's based on an ancient bb version). You are right, lineedit is not UTF-8 capable. I am renaming this bug. If you want to have separate bug about msh not being capable of handling chars >127 (even in "1 byte is one char" mode), please create new bug, with an example script which is mishandled by msh. This is a known problem in msh. Created attachment 453 [details]
Fix (already applied to 1.15.x git tree)
Please test current git. If you can't, try applying this patch to 1.14.x and test that.
|