[Bug 236935] libxo =text and XOF_FLUSH does not print the first value

2019-04-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236935 Phil Shafer changed: What|Removed |Added Status|Open|Closed Resolution|---

[Bug 236935] libxo =text and XOF_FLUSH does not print the first value

2019-04-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236935 --- Comment #8 from commit-h...@freebsd.org --- A commit references this bug: Author: phil Date: Wed Apr 3 21:55:42 UTC 2019 New revision: 345859 URL: https://svnweb.freebsd.org/changeset/base/345859 Log: Import libxo-1.0.2 from 1.0.

[Bug 236935] libxo =text and XOF_FLUSH does not print the first value

2019-04-02 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236935 Alfonso S. Siciliano changed: What|Removed |Added Status|Closed |Open Resolution|FIX

[Bug 236935] libxo =text and XOF_FLUSH does not print the first value

2019-04-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236935 Alfonso S. Siciliano changed: What|Removed |Added Status|New |Closed Resolution|-

[Bug 236935] libxo =text and XOF_FLUSH does not print the first value

2019-04-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236935 --- Comment #5 from Phil Shafer --- The fix is: +++ b/libxo/xo_buf.h @@ -114,7 +114,12 @@ static inline int xo_buf_has_room (xo_buffer_t *xbp, ssize_t len) { if (xbp->xb_curp + len >= xbp->xb_bufp + xbp->xb_size) { - ssize_t s

[Bug 236935] libxo =text and XOF_FLUSH does not print the first value

2019-04-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236935 --- Comment #4 from Phil Shafer --- >Turns out that xo_transition's call to xo_flush_h is not needed Nevermind; better to flush early and often. Thanks, Phil -- You are receiving this mail because: You are the assignee for the bug. ___

[Bug 236935] libxo =text and XOF_FLUSH does not print the first value

2019-04-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236935 --- Comment #3 from Phil Shafer --- Bug: Bad check for xo_flush_h in xo_transition: @@ -7884,7 +7882,7 @@ xo_transition (xo_handle_t *xop, xo_xof_flags_t flags, const char *name, /* Handle the flush flag */ if (rc >= 0 && XOF_IS

[Bug 236935] libxo =text and XOF_FLUSH does not print the first value

2019-04-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236935 --- Comment #2 from Phil Shafer --- Thanks for the example code. This one is easily reproducible. Thanks, Phil -- You are receiving this mail because: You are the assignee for the bug. ___ fr

[Bug 236935] libxo =text and XOF_FLUSH does not print the first value

2019-04-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236935 --- Comment #1 from Alfonso S. Siciliano --- Note: with xml ./problem-xof-flush --libxo=xml,pretty 1 2 3 It is OK, the problem is only with text ./problem-xof-flush --libxo=text,pretty TEST 1 Value1: <-HERE TEST 2 Value2:2 TEST 3 3Val

[Bug 236935] libxo =text and XOF_FLUSH does not print the first value

2019-04-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236935 Bug ID: 236935 Summary: libxo =text and XOF_FLUSH does not print the first value Product: Base System Version: CURRENT Hardware: Any OS: Any