<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/editors, branch ansi</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=ansi</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=ansi'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2016-04-26T12:48:18+00:00</updated>
<entry>
<title>winansi: add a routine to clear the screen buffer</title>
<updated>2016-04-26T12:48:18+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-04-26T12:13:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=aa3595b3d38ecc6b86b351ac215829f0de58d911'/>
<id>urn:sha1:aa3595b3d38ecc6b86b351ac215829f0de58d911</id>
<content type='text'>
And use it to restore the old behaviour of vi and less:  they reset
the cursor to the top of the buffer and clear it.
</content>
</entry>
<entry>
<title>sed: drop \r when reading input</title>
<updated>2016-03-16T11:36:45+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-03-16T11:36:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3ebb829683aab54f5089a878120294ae9e5d2fcf'/>
<id>urn:sha1:3ebb829683aab54f5089a878120294ae9e5d2fcf</id>
<content type='text'>
An upstream bug (https://bugs.busybox.net/show_bug.cgi?id=8791) reports:

$ cat myfile
a
b
c
$ sed "s/\(.*\)/\1\1/" myfile
a
b
c

it should be:

$ sed "s/\(.*\)/\1\1/" myfile
aa
bb
cc

This happened because busybox-w32 opens files in binary mode.  Lines read
by sed had trailing LFs removed but not trailing CRs.  The CRs ended up
in the matched strings and were output, thus giving the appearance that
only one of the backreferences was printed.

The same happens on Linux when a DOS file is processed by BusyBox sed
or GNU sed.  However, this behaviour is arguably incorrect on Windows.
I've modified busybox-w32 to drop trailing CRs as well as LFs from
input lines.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2016-02-22T10:00:45+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-02-22T10:00:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=371c20c008254a36e7157df6c13dc2e4cf87d6fd'/>
<id>urn:sha1:371c20c008254a36e7157df6c13dc2e4cf87d6fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sed: make 's///w FILE' actually write to FILE. Closes 8251</title>
<updated>2016-01-24T14:52:16+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-01-24T14:52:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=2a4bba3ce2e00e55e6690fa8ba2607679277eed4'/>
<id>urn:sha1:2a4bba3ce2e00e55e6690fa8ba2607679277eed4</id>
<content type='text'>
function                                             old     new   delta
add_cmd                                             1167    1210     +43

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>patch: correctly handle "patch FILE_TO_PATCH" form. Closes 7736</title>
<updated>2016-01-23T04:13:15+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-01-23T04:13:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=eb5091070f6876993d868d2b2bb49b4b4d3ed002'/>
<id>urn:sha1:eb5091070f6876993d868d2b2bb49b4b4d3ed002</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2015-10-19T11:53:35+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2015-10-19T11:53:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8afe8ee83a274925340473fa4d0a984bdcbee740'/>
<id>urn:sha1:8afe8ee83a274925340473fa4d0a984bdcbee740</id>
<content type='text'>
</content>
</entry>
<entry>
<title>*: more BUILD_BUG_ON conversions</title>
<updated>2015-10-13T15:17:34+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2015-10-13T15:17:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7b85ec30b5941f0b90c48a990f2f6840aca87bce'/>
<id>urn:sha1:7b85ec30b5941f0b90c48a990f2f6840aca87bce</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2015-10-13T13:45:51+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2015-10-13T13:45:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8e509f11bceeec419abc718300bef7422d1fee4c'/>
<id>urn:sha1:8e509f11bceeec419abc718300bef7422d1fee4c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>join some common strings, -400 bytes</title>
<updated>2015-10-08T09:24:44+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2015-10-08T09:24:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7f3a2a22569eb8e4c9fcc1c7f4e51fe0c6155dae'/>
<id>urn:sha1:7f3a2a22569eb8e4c9fcc1c7f4e51fe0c6155dae</id>
<content type='text'>
function                                             old     new   delta
print_intel_cstates                                  499     511     +12
file_insert                                          355     364      +9
dpkg_main                                           2944    2940      -4
ifenslave_main                                       645     640      -5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 21/-9)              Total: 12 bytes
   text	   data	    bss	    dec	    hex	filename
 937564	    932	  17676	 956172	  e970c	busybox_old
 937164	    932	  17676	 955772	  e957c	busybox_unstripped

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>build system: -fno-builtin-printf</title>
<updated>2015-10-07T20:42:45+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2015-10-07T20:42:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d60752f8c9be5689a249ad518deb38061d4bc45e'/>
<id>urn:sha1:d60752f8c9be5689a249ad518deb38061d4bc45e</id>
<content type='text'>
Benefits are: drops reference to out-of-line putchar(), fixes a few cases
of failed string merge.

function                                             old     new   delta
i2cdump_main                                        1488    1502     +14
sha256_process_block64                               423     433     +10
sendmail_main                                       1183    1185      +2
list_table                                          1114    1116      +2
i2cdetect_main                                      1235    1237      +2
fdisk_main                                          2852    2854      +2
builtin_type                                         119     121      +2
unicode_conv_to_printable2                           325     324      -1
scan_recursive                                       380     378      -2
mkfs_minix_main                                     2687    2684      -3
buffer_fill_and_print                                178     169      -9
putchar                                              152       -    -152
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 7/4 up/down: 34/-167)          Total: -133 bytes
   text    data     bss     dec     hex filename
 937788     932   17676  956396   e97ec busybox_old
 937564     932   17676  956172   e970c busybox_unstripped

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
