🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #154716

Re: Newsreader TIN on Windows, without Cygwin?

#154716
From: Urs Janßen
Date: Thu, 26 Aug 2004 12:48
40 lines
3440 bytes
In <412c9851$0$74037$a344fe98@news.wanadoo.nl>,
    Frank Slootweg wrote:
> > > Command failed: /bin/vi 7 /cygdrive/c/Documents and Settings/<user>/.article.2848
> > but compared to the reading/displaying problem, the posting problem is a
> > trivial one.
>   This problem is still not solved and is currently the major problem.
>   Basically I can not get "default_editor_format=..." to execute
> *anything*, let alone an editor with the right pathname. I have tried
> everything I could think of, i.e. UNIX versus MS-Windows, pathname
> differences, missing shell, PATH, etc.. Even something as basic as
> "default_editor_format=set" fails with "Command failed: set". I use this
> 'silly' command,  because it is both a UNIX (i.e. Cygwin) and MS-Windows
> (i.e. 'DOS') built-in command. I have also tried external commands like
> /bin/echo and ipconfig, but with the same results.
>
>   So I am stuck.
>
>   What *exactly* does tin do when executing the command given in
> "default_editor_command=..."? I.e. what does it start, which which
> path(s), with which arguments/options, etc.?

if there are any %E/%F/%N in default_editor_format then they are
expanded if that "fails" the command is set to '$EDITOR filename'.
the result is something like
	"vi $HOME/.article[.$PID]"
which is then passed to system(3)

misc.c:invoke_editor() is the code which is called to execute an
editor. it calls misc.c:strfeditor()/string.c:sh_format() to build the
comand-string and then calls misc.c:invoke_cmd() which calls
system(3). the article name is build in init.c:init_selfinfo() via
joinpath.c:joinpath() which can't handle windows-path. so this is the
right place to look at. setting $TIN_HOMEDIR and/or $HOME to an
existing dir (using windows-path) might be usefull as well.

urs
-- 
Jef Poskanzer:
"When people aren't stupid Usenet is even more useful. Too bad this happens
 so rarely."
Technical Details
Message-ID: <cgkm6a$k5v$1@news2.rz.uni-karlsruhe.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail
References: <MPG.1b88c5617b064aeb9896fb@news.individual.net> <X5GTc.601$d5.4553@newsb.telia.net> <cfng39$3il$1@news2.rz.uni-karlsruhe.de> <MPG.1b897b9cca12d8af989704@news.individual.net> <4120ccbe$0$134$1b2cd167@news.wanadoo.nl> <cfrbm9$c2a$1@news2.rz.uni-karlsruhe.de> <4121bd1f$0$147$18b6e80@news.wanadoo.nl> <slrnci5io5.134.rudy@142.39.20.3> <412484ca$0$58984$b83b6cc0@news.wanadoo.nl> <412c9851$0$74037$a344fe98@news.wanadoo.nl>

Show Full Headers
Complete Article Headers
Message-ID: <cgkm6a$k5v$1@news2.rz.uni-karlsruhe.de>
Subject: Re: Newsreader TIN on Windows, without Cygwin?
Date: Thu, 26 Aug 2004 12:48:10 +0000
From: Urs Janßen <urs@buil.tin.org>
References: <MPG.1b88c5617b064aeb9896fb@news.individual.net> <X5GTc.601$d5.4553@newsb.telia.net> <cfng39$3il$1@news2.rz.uni-karlsruhe.de> <MPG.1b897b9cca12d8af989704@news.individual.net> <4120ccbe$0$134$1b2cd167@news.wanadoo.nl> <cfrbm9$c2a$1@news2.rz.uni-karlsruhe.de> <4121bd1f$0$147$18b6e80@news.wanadoo.nl> <slrnci5io5.134.rudy@142.39.20.3> <412484ca$0$58984$b83b6cc0@news.wanadoo.nl> <412c9851$0$74037$a344fe98@news.wanadoo.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail
Newsgroups: news.software.readers
Organization: tin.org
Lines: 40
Sender: Urs Janßen <urs@akk10-int.akk.uni-karlsruhe.de>
NNTP-Posting-Host: akkuser-dmz.akk.uni-karlsruhe.de
X-Trace: news2.rz.uni-karlsruhe.de 1093524490 20671 172.22.9.237 (26 Aug 2004
X-Complaints-To: usenet@rz.uni-karlsruhe.de
NNTP-Posting-Date: Thu, 26 Aug 2004 12:48:10 +0000 (UTC)
X-No-Archive: yes
User-Agent: tin/1.7.6-20040824 ("Gighay") (UNIX) (Linux/2.4.26-1-686 (i686))