<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libedit/tokenizer.c, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-02-19T14:49:32Z</updated>
<entry>
<title>MFC r352136, r352204, r352275, r352341</title>
<updated>2020-02-19T14:49:32Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2020-02-19T14:49:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb9c4effcef4aa5f9d3eb2a70f13c71e08e1cff8'/>
<id>urn:sha1:fb9c4effcef4aa5f9d3eb2a70f13c71e08e1cff8</id>
<content type='text'>
r352136:
Import libedit 2019-09-10

Compared to current version in base:
- great improvements on the Unicode support
- full support for filename completion including quoting
  which means we do not need anymore our custom addition)
- Improved readline compatiblity

Upgrading libedit has been a pain in the past, because somehow we never
managed to properly cleanup the tree in lib/libedit and each merge has always
been very painful. After years of fighting give up and refresh a merge from
scrarch properly in contrib.

Note that the switch to this version will be done in another commit.

r352204:
Readd _el_fn_sh_complete for backward compatibility

This function is not needed anymore, it allows old sh binary to continue
to run and avoid breaking backward compatibility.
Note that is now just calls the regular _el_fn_complete which does a proper
job at quoting.

Discussed with: jilles

r352275:
Update libedit to a snapshot from 2019-09-10

This version bring many fixes regarding unicode support
It also adds proper support for filename completion (we do not need our custom
patches anymore)
Improves the libreadline compatibility

Note that the same work was done by Yuichiro Naito in
https://reviews.freebsd.org/D21196 the main difference is in this case we have
reimported libedit in contrib to fix a long standing mess in the previous merges
which prevented a proper update workflow. (discussed long ago with pfg@)

The only difference with upstream libedit is we have added a compatibility shim
for the _elf_fn_sh_complete function which we previously added to support quoting
in filename completion and is not needed anymore.
This was added to continue supported old /bin/sh binaries and not break backward
compatibility (as discussed with jilles@)

Reviewed by: Yuichiro Naito &lt;naito.yuichiro_gmail.com&gt;
Differential Revision: https://reviews.freebsd.org/D21584

r352341:
Fix arm and aarch64 builds of libedit after r352275

On arm and arm64, where chars are unsigned by default, buildworld dies
with:

--- terminal.o ---
/usr/src/contrib/libedit/terminal.c:569:41: error: comparison of
integers of different signs: 'wint_t' (aka 'int') and 'wchar_t' (aka
'unsigned int') [-Werror,-Wsign-compare]
                                     el-&gt;el_cursor.v][where &amp; 0370] !=
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/src/contrib/libedit/terminal.c:659:28: error: comparison of
integers of different signs: 'wint_t' (aka 'int') and 'wchar_t' (aka
'unsigned int') [-Werror,-Wsign-compare]
                                     [el-&gt;el_cursor.h] == MB_FILL_CHAR)
                                     ~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~

Fix this by making MB_FILL_CHAR a wint_t, so no casting is needed.

Note that in https://reviews.freebsd.org/D21584 this was also proposed
by Yuichiro Naito &lt;naito.yuichiro_gmail.com&gt;.

Reviewed by: bapt
Subscribers: naito.yuichiro_gmail.com, ml_vishwin.info
X-MFC-With: r352275
Differential Revision: https://reviews.freebsd.org/D21657
</content>
</entry>
<entry>
<title>MFV r312996:</title>
<updated>2017-01-30T22:11:53Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-01-30T22:11:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=450aba5b34d82f38f995ef6ed3821466ddfda939'/>
<id>urn:sha1:450aba5b34d82f38f995ef6ed3821466ddfda939</id>
<content type='text'>
Re-import libedit 2016-02-27

This reverts r296435: the issues related to lldb and this update appear to
have been identified (in lldb).

Obtained from:	NetBSD
Reported by:	emaste
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Revert r296175</title>
<updated>2016-03-06T21:32:54Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-03-06T21:32:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1f37f0f18ffbdd3ff3c261368a34b1dacbd07bb2'/>
<id>urn:sha1:1f37f0f18ffbdd3ff3c261368a34b1dacbd07bb2</id>
<content type='text'>
Undo update of libedit 2016-02-27

Something in libedit appears to be causing breakage in lldb38.
The changes are not generally huge but they are suficient to
to justify reverting for now.

Reported by:	novel, bapt
</content>
</entry>
<entry>
<title>MFV r296159</title>
<updated>2016-02-29T00:15:25Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-02-29T00:15:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e81f248547f66339ce850cc72bb2287ad55afbcb'/>
<id>urn:sha1:e81f248547f66339ce850cc72bb2287ad55afbcb</id>
<content type='text'>
Sync our libedit with NetBSD's libedit 2016-02-27.

Obtained from:	NetBSD
</content>
</entry>
<entry>
<title>MFV r295360</title>
<updated>2016-02-07T15:26:21Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-02-07T15:26:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=56f42903b100f539a24b7fc996aab8736b4c0d17'/>
<id>urn:sha1:56f42903b100f539a24b7fc996aab8736b4c0d17</id>
<content type='text'>
Sync our libedit with NetBSD's libedit 2016-01-16

Obtained from:	NetBSD
</content>
</entry>
<entry>
<title>Synchronize libedit with NetBSD and activate UTF-8 support [1]</title>
<updated>2015-01-09T07:40:56Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2015-01-09T07:40:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c1a66a97f95d2f4366348b75e2c7676d11048666'/>
<id>urn:sha1:c1a66a97f95d2f4366348b75e2c7676d11048666</id>
<content type='text'>
Differences with NetBSD
Reapply our local patches on top of it
Fix Unicode environement detection
Fix reading a line in unicode environment.
It allows /bin/sh to works in UTF-8 envs

Differential Revision:	https://reviews.freebsd.org/D1455
Reviewed by:	jilles, pfg
Obtained from:	NetBSD [1]
MFC after:	1 month
Relnotes:	yes
</content>
</entry>
<entry>
<title>Merge more cosmetical changes from NetBSD's libedit.</title>
<updated>2012-07-19T19:15:47Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2012-07-19T19:15:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8df73d08245e0478ad963fe7f0e356defebabc25'/>
<id>urn:sha1:8df73d08245e0478ad963fe7f0e356defebabc25</id>
<content type='text'>
makelist:
change tr '[a-z]' '[A-Z]' to tr '[:lower:]' '[:upper:]' so that POSIX
systems work proerly regardsless of environment variable settings.

tokenizer.c:
pass lint on _LP64

Obtained from:	NetBSD
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Sync libedit with recent NetBSD developments.  Including improvements to the</title>
<updated>2005-08-07T20:55:59Z</updated>
<author>
<name>Stefan Farfeleder</name>
<email>stefanf@FreeBSD.org</email>
</author>
<published>2005-08-07T20:55:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=76d00450e675825131c7cd211e274537cd42a542'/>
<id>urn:sha1:76d00450e675825131c7cd211e274537cd42a542</id>
<content type='text'>
vi-mode, removal of clause 3, cleanups and the export of the tokenization
functions.

Not included: config.h, filecomplete.{c,h}
</content>
</entry>
<entry>
<title>Revert the replacement of realloc() with reallocf() (el.h:1.2, map.c:1.5 and</title>
<updated>2005-08-07T08:35:39Z</updated>
<author>
<name>Stefan Farfeleder</name>
<email>stefanf@FreeBSD.org</email>
</author>
<published>2005-08-07T08:35:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=969f70013850f952bf41a8abfe728f632b6fd5fb'/>
<id>urn:sha1:969f70013850f952bf41a8abfe728f632b6fd5fb</id>
<content type='text'>
tokenizer.c:1.3).  Contrary to the commit log there were no memory leaks,
but the change introduced a bug because the free'd pointer was not zeroed
and calling the appropriate _end() function would call free() a second time.
</content>
</entry>
<entry>
<title>Fix ID's after a total boch CVS merge due to multiple people making</title>
<updated>2001-10-01T23:00:29Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2001-10-01T23:00:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0878b3a9b13e602bf1a31682dd465c0a0debb282'/>
<id>urn:sha1:0878b3a9b13e602bf1a31682dd465c0a0debb282</id>
<content type='text'>
commits to these files.
As I sing to CVS:
	Have I told you lately that I hate your guts?  Have I told you
	all SCM's are above you?  You fill my heart with pain, take away
	all my merging joy, grow my troubles that's what you do."
</content>
</entry>
</feed>
