PostgreSQL, OpenSSL, and the GPL
PostgreSQL, OpenSSL, and the GPL
Posted Feb 16, 2011 20:24 UTC (Wed) by dberkholz (guest, #23346)Parent article: PostgreSQL, OpenSSL, and the GPL
Posted Feb 16, 2011 20:40 UTC (Wed)
by mbanck (subscriber, #9035)
[Link]
Posted Feb 16, 2011 20:41 UTC (Wed)
by sfeam (subscriber, #2841)
[Link]
Calling it a "bug" isn't really correct. libedit simply doesn't have any support for UTF-8. Or wait - you could say it's a bug in the documentation; the source distribution site www.thrysoee.dk/editline/ does mention UTF-8 support, but having gone over the source code I conclude that whoever wrote that did not understand the difference between support for "wchar" fixed-length 16 bit or 32 bit encodings and support for a variable length encoding like UTF-8. libedit recently added support for the former, but I found no hint of support for the latter.
The gnuplot project has been suffering from this problem for a long time now. It would be nice to offer the option of linking to libedit (in fact we do offer that option) but it simply doesn't work in a UTF-8 or SJIS environment. This is particularly annoying because Apple ships a version of libedit with OSX that announces itself as "readline". But it isn't, so programs that autoconfigure to use readline then fail because "readline" is really "libedit".
Now I would be happy as a clam if someone can tell me otherwise, and point to source for a libedit version, buggy or not, that does really support UTF-8. Anyone?
Posted Feb 16, 2011 20:42 UTC (Wed)
by rvfh (guest, #31018)
[Link]
Posted Feb 16, 2011 20:43 UTC (Wed)
by obrakmann (subscriber, #38108)
[Link] (3 responses)
Especially since Debian seems to use a libedit from 2008 (according to the package version at least: 2.11-20080614-2), while the latest changelog entry from 2010 (on the homepage linked to from this article) says "Now with UTF-8 support"
Lovely.
Posted Feb 16, 2011 20:50 UTC (Wed)
by mbanck (subscriber, #9035)
[Link] (2 responses)
Posted Feb 16, 2011 22:27 UTC (Wed)
by mikov (guest, #33179)
[Link] (1 responses)
Posted Feb 17, 2011 5:06 UTC (Thu)
by khim (subscriber, #9252)
[Link]
Sure. It's easy: because this book weights over five pounds (2kg)... Editing of a single line of US-ASCII text is easy and libedit does it acceptably well. But when you go beyond that... some characters take two positions on screen, some don't take anything at all, etc. Readline does not do it all that well, but in comparison to libedit... well, it's not so simple to edit a single line of text, believe me...
PostgreSQL, OpenSSL, and the GPL
Am I understanding correctly that this whole discussion is because nobody's fixing a bug in libedit?
PostgreSQL, OpenSSL, and the GPL
PostgreSQL, OpenSSL, and the GPL
PostgreSQL, OpenSSL, and the GPL
PostgreSQL, OpenSSL, and the GPL
PostgreSQL, OpenSSL, and the GPL
PostgreSQL, OpenSSL, and the GPL
I mean, editing a single line of text is a problem? Really? Can someone explain why?