Re: ncurses 6.6 regression: setupterm() rejects valid PTY, breaks tmux attach
Liam Huang <[email protected]> Wed, 27 May 2026 17:03:03 +0800
| Newsgroups | gmane.comp.lib.ncurses.bugs |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_F085C9E2-4688-4602-A122-1AA5E98A7B04 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Johann, Just a quick clarification =E2=80=94 the imsg library I'm referring to = is the OpenBSD IPC library (imsg_init, imsg_compose, etc.), not the macOS iMessage CLI tool at github.com/openclaw/imsg. They share a name but are completely unrelated projects. The OpenBSD imsg library provides structured message passing over Unix domain sockets, and is used by many OpenBSD daemons (OpenSMTPD, OpenBGPD, etc.). tmux bundles a compat copy of it in its source tree (compat/imsg.c, compat/imsg-buffer.c) so it can build on non-OpenBSD systems like Linux and macOS. This is not a Linux-vs-SUS issue. It's simply that tmux upgraded its bundled copy of this library between releases 3.5a and 3.6b, and the new version changed the wire format in a way that's incompatible with the old one. When an old server and new client try to communicate, the fd-passing mechanism breaks. Best, Liam > 2026=E5=B9=B45=E6=9C=8827=E6=97=A5 16:59=EF=BC=8CJohann 'Myrkraverk' = Oskarsson <[email protected]> =E5=86=99=E9=81=93=EF=BC=9A >=20 > Johann --Apple-Mail=_F085C9E2-4688-4602-A122-1AA5E98A7B04 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dutf-8"></head><body = style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;"><div>Hi = Johann,</div><div><br></div><div>Just a quick clarification =E2=80=94 = the imsg library I'm referring to is the</div><div>OpenBSD IPC library = (imsg_init, imsg_compose, etc.), not the macOS</div><div>iMessage CLI = tool at github.com/openclaw/imsg. They share a name but</div><div>are = completely unrelated projects.</div><div><br></div><div>The OpenBSD imsg = library provides structured message passing over Unix</div><div>domain = sockets, and is used by many OpenBSD daemons = (OpenSMTPD,</div><div>OpenBGPD, etc.). tmux bundles a compat copy of it = in its source tree</div><div>(compat/imsg.c, compat/imsg-buffer.c) so it = can build on non-OpenBSD</div><div>systems like Linux and = macOS.</div><div><br></div><div>This is not a Linux-vs-SUS issue. It's = simply that tmux upgraded its</div><div>bundled copy of this library = between releases 3.5a and 3.6b, and the</div><div>new version changed = the wire format in a way that's incompatible with</div><div>the old one. = When an old server and new client try to communicate, = the</div><div>fd-passing mechanism = breaks.</div><div><br></div><div>Best,</div><div>Liam</div><div><br></div>= <div><br><blockquote type=3D"cite"><div>2026=E5=B9=B45=E6=9C=8827=E6=97=A5= 16:59=EF=BC=8CJohann 'Myrkraverk' Oskarsson = <[email protected]> =E5=86=99=E9=81=93=EF=BC=9A</div><br = class=3D"Apple-interchange-newline"><div><span style=3D"caret-color: = rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: = normal; font-variant-caps: normal; font-weight: 400; letter-spacing: = normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline = !important;">Johann</span></div></blockquote></div><br></body></html>= --Apple-Mail=_F085C9E2-4688-4602-A122-1AA5E98A7B04--