According to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232374,
libedit doesn't support other multibyte charset than UTF-8.
We enhance to support other multibyte charset that FreeBSD libc supports.
Differential D17903
[libedit] enhance multibyte support naito.yuichiro_gmail.com on Nov 8 2018, 5:45 AM. Authored by Tags None Referenced Files
Details
According to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232374, We enhance to support other multibyte charset that FreeBSD libc supports. execute /bin/sh in following locale and input multibyte characters from STDIN.
We expect /bin/sh is enable to handle multibyte characters. Regression:
Diff Detail
Event TimelineComment Actions I think this makes perfect sense. You might want to update editline(3) as well so it doesn't say it only knows about UTF-8 and C locales. Comment Actions Fixed editline.3 manual page. Comment Actions This makes perfect sense to me as well, have you try to contact upstream (aka netbsd) with this patch? christos@ might be a good contact overthere.
Comment Actions
No, I've never tried to contact to NetBSD project.
Thanks to let me know.
Are you afraid of poor performance in C or ASCII environment? Comment Actions For the record ... We really do need to update libedit (from NetBSD). Someone brave, and with time, has to take the step of just bringing the NetBSD version ... Comment Actions I did it once, it is not that hard, and our version right now is not that far from there version is it? for the record, I have also contacted christos@ by email so he can wait on this review. Also our "extensions" to libedit are not big if it hasn't changed from my last update. Comment Actions My memory is sketchy here, I think there were moved files and some other code disappeared making the merge difficult. The other nice thing we have to bring at some point is NetBSD's mail(1) support for libedit. (sorry for other more TODOs to someone else's list ;).
Those are pretty small yes, but they are difficult to keep track of when you try to follow the upstream changes. It's a matter of patience. and yes, the update is not really related to this change. Comment Actions I talked with Christos and asked him to merge my patch to NetBSD src tree. Comment Actions I've changed my mind to send my patch to Christos and now it is committed to NetBSD source repository. We can see the difference clearly. https://github.com/NetBSD/src/commit/8a1d432332ba347280795bd33d03f9225693f26e Comment Actions merged from NetBSD repository. Comment Actions I had review from hrs@ in FreeBSD workshop Tokyo on 21 Nov.
|