https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112013-12-03T22:43:52ZRuby Issue Tracking SystemRuby master - Bug #9204: Issues when compiled with libedit instead of readlinehttps://redmine.ruby-lang.org/issues/9204?journal_id=433952013-12-03T22:43:52Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Third Party's Issue</i></li></ul><p>It's your choice.</p> Ruby master - Bug #9204: Issues when compiled with libedit instead of readlinehttps://redmine.ruby-lang.org/issues/9204?journal_id=434132013-12-05T01:54:38Znoniq (Stefan Daschek)stefan@daschek.net
<ul></ul><p>Indeed, but unfortunately it’s a badly documented choice with rather surprising consequences: Compiling Ruby works seemingly without any problems, and you may use Ruby for several days or even months before noticing the issue. And then it’s quite hard to find out that this has something todo with the way you initially compiled Ruby.</p>
<p>Could there at least be a big warning when compiling with libedit, saying something like “Warning: This build uses libedit instead of readline. You will not be able to use accented characters in irb.“? Dave Thomas already suggested this back in 2009: <a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/21277" class="external">http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/21277</a></p> Ruby master - Bug #9204: Issues when compiled with libedit instead of readlinehttps://redmine.ruby-lang.org/issues/9204?journal_id=510632015-01-16T23:47:36Zbapt (Baptiste Daroussin)bapt@FreeBSD.org
<ul></ul><p>Please note that on FreeBSD I managed to fix the issue</p>
<p>Basically I added to the latest libedit a couple of patches:<br>
<a href="https://svnweb.freebsd.org/ports/head/devel/libedit/files/patch-src_eln.c?view=markup" class="external">https://svnweb.freebsd.org/ports/head/devel/libedit/files/patch-src_eln.c?view=markup</a></p>
<p>I have also had to remove the following line from the ext/readline/extconf.rb in ruby:<br>
readline.have_func("rl_getc_function")</p>
<p>The env should be set to support UTF-8</p>