Re: patch(1) max line length

Steffen Nurpmeso <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <20240713004020.XyYvguJa@steffen%sdaoden.eu>
Mouse wrote in
 <[email protected]>:
 |>>> I note the specification does not forbid the handling of lines
 |>>> longer than LINE_MAX characters.
 |>> No, it certainly does not do that.
 |
 |Yeah; like a lot of examples, recovery from error cases is allowed to
 |be "handle it as if the limit weren't there".
 |
 |> It is your fault to think normal rules apply to JSON, for sure.
 |
 |Well, I would say, rather, that it the mistake lies in expecting normal
 |text tools to work on newline-free JSON, or minified javascript, or
 |other pseudo-text data without newlines).

Maybe yes.  Pretty sure even.

 |But, yeah, "they don't care any more".  I have yet to find a way to

Yeah, really.  That.  And then i want mupdf (which became
a monster that has a 143 MB package here) to give me a way to
look and scroll through the history.  Just a window with the
content.  Has not even a window that shows shortcuts.

 |configure recent Linuces so that text tools (ul, sed, etc) work in the
 |"each octet is exactly one character" paradigm (which I want more often
 |than they seem to think I should, even when working on Linux).

LC_ALL=C i would say.  (If that is not C.UTF-8 ;)

 |For that matter I have lost track of the number of tools (Linux tools
 |are the worst but by no means only offenders) that assume X3.64
 |sequences do whatever it is the program is expecting them to...and then
 |there's recent gcc, which outputs *mis-terminated* OSCs.

Not encountered that yet here.  I only have problems with GNU
bison when running it (for nawk) in some container.  bug-bison on
April 26th

  bison -d  awkgram.y
  awkgram.yawkgram.y: : warning:warning:3399;49m;49m  62 shift/reduce conflicts62 shift/reduce conflicts [ [
  7 reduce/reduce conflicts] [8;id=5]984;dicd7=750909046d1c67f7101050b63196dfb1d1050b03090d0b0d10;0h0t0t0p0s0:1/;/hwtwtwp.sg:n/u/.wowrwg./gsnouf.towragr/es/obfitswoanr/em/abniusaoln//hmtamnlu_a
  nlo/dhet/mDli_angondoes/tDiicasg.nhotsmtli#cWsc.ohntfmlli#cWtcso-nrfrl\c-Wconflicts-rrt[-3r9r;\9-Wconflicts-rrm389;;;4\m]
  awkgram.y: note:note: erun with option '-Wcounterexamples' to generate conflict counterexamples[f111d207]580;0i0d00=050919;h4ttdpcs7:/7/0w0w0w.gnu.org/softw6a1r6ef/1b1i1sdo2n/ma0nu7a4l2/0h0t0
  39;49m rerun with option '-Wcounterexamples' to generate conflict counterexamplescts-rri[o3n9/;m4a9nmu]l8/;h;t\l_no]de
  cc -g -Wall -pedantic -Wcast-qual   -O2   -c -o [.]
  ...

Have this for years, but it seems it is the library underground
and noone else uses strange namespace containers in favour of
docker or something.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.