Discussion:
[slrn] article status bug
(too old to reply)
Tavis Ormandy
2021-01-13 19:50:06 UTC
Permalink
Hello, I think the documentation suggests that something like this
should work:

set art_status_line "%?Q?Quotes Visible&Quotes Hidden?"

Unfortunately that just crashes slrn 1.0.3 whenever you try to view an
article. I sent a bug report to jed@, I don't know if that's the right
place.

I came up with a funny workaround, I thought I'd post it here in case
anyone else runs into it and searches for a solution. The crash only
happens if the "false" branch is taken, so this avoids using it:

set art_status_line "Quotes %?Q?Visible%-0g?Hidden%?Q?%14g?"

You'll need to adjust the %14g number if you want different text or in a
different position on the line, but you get the idea.

Tavis.
--
----------------------------
$ finger ***@sdf.org
----------------------------------------------
Tavis Ormandy
2021-01-21 01:23:27 UTC
Permalink
Post by Tavis Ormandy
Hello, I think the documentation suggests that something like this
set art_status_line "%?Q?Quotes Visible&Quotes Hidden?"
This got fixed in slrn pre1.0.4-5, the first commit in nearly 4 years!

Tavis.
--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger ***@sdf.org
_\_V _( ) _( ) @taviso
andrew
2021-01-21 06:23:09 UTC
Permalink
Post by Tavis Ormandy
This got fixed in slrn pre1.0.4-5, the first commit in nearly 4 years!
That is indeed exciting! Exciting enough that I have broken out a
compiler under Windows 10 and built the newer version:

#v+
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\andrew> slrn --version
slrn pre1.0.4-5
* Note: This version is a developer preview.
S-Lang Library Version: 2.3.2
Operating System: Win32

COMPILE TIME OPTIONS:
Backends: +nntp +slrnpull +spool
External programs / libs: -canlock -inews +ssl -uudeview +iconv
Features: +decoding +emphasized_text +end_of_thread +fake_refs +gen_msgid
-grouplens +msgid_cache +piping +rnlock +spoilers -strict_from
Using 64 bit integers for article numbers.

DEFAULTS:
Default server object: nntp
Default posting mechanism: nntp
PS C:\Users\andrew>
#v-

JED is perhaps a little like the old Chuck Norris joke: he doesn't
sleep... he waits.... :)

Andrew
--
You think that's air you're breathing now?
Lewis
2021-01-21 22:00:03 UTC
Permalink
Post by Tavis Ormandy
Post by Tavis Ormandy
Hello, I think the documentation suggests that something like this
set art_status_line "%?Q?Quotes Visible&Quotes Hidden?"
This got fixed in slrn pre1.0.4-5, the first commit in nearly 4 years!
Hope it makes it to homebrew soon.

Yes yes, I could just compile it myself...
--
This isn't Middle Earth, Quentin. There aren't enough noble quests to go around.
Loading...