Article View: news.software.readers
Article #71611Re: slrn-win32 wishlist: warn on single '\' in full paths
From: Marcus Houlden
Date: Mon, 05 Feb 2001 20:11
Date: Mon, 05 Feb 2001 20:11
34 lines
2607 bytes
2607 bytes
On 28 Jan 2001 20:43:01 GMT, Thomas Schultz <tststs@gmx.de>
wrote the following to news.software.readers:
> On 26 January 2001, Red Drag Diva <fun@thingy.apana.org.au> wrote:
>
> > I have a suggestion: that slrn for Windows warns the user about an
> > executable path that looks like it might have been entered with this
> > error. [...]
>
> I always thought the note at the top of the sample slrn.rc file should
> be sufficient - on the other hand, implementing such a warning can be
> done in a few lines of code and will hopefully save us from this
> problem coming up on Usenet again and again ...
It occurs to me that it wouldn't be that hard to just fix the problem
instead of having to do a workaround or putting in a warning. Having a quick
look at the source code it appears to read the slrn.rc file a character at a
time. Something like this pseudocode could sort out the problem:
#v+
if (string is one that contains a path && (OS == Win9x || OS == OS2 || OS ==
WinNT))
{
if (character == '\\')
character = '/';
}
/*continue processing the character*/
#v-
--
Marcus Houlden
This space for hire.
Technical Details
Message-ID:
<slrn97u28a.3vubd87.spam@mh.hf.umist.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!isdnet!fu-berlin.de!server1.netnews.ja.net!peernews.mcc.ac.uk!godfrey.mcc.ac.uk!spamReferences:
<94a1qv$l3k$1@athena.ukc.ac.uk> <slrn96jr7l.1dl.tststs@starflower.tststs.ddns.org> <94elb3$33e$1@athena.ukc.ac.uk> <slrn96mcci.de.tststs@starflower.tststs.ddns.org> <94fpmh$3mg$15@athena.ukc.ac.uk> <slrn96mr7o.9nl.jewa@message-id.wahnes-world.de> <94fr6o$3mg$16@athena.ukc.ac.uk> <slrn9722n5.nea.fun@blowtorch.softcell.com.au> <slrn97912l.aro.tststs@starflower.tststs.ddns.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn97u28a.3vubd87.spam@mh.hf.umist.ac.uk> Subject: Re: slrn-win32 wishlist: warn on single '\' in full paths Date: Mon, 05 Feb 2001 20:11:49 +0000 From: spam@nukesoft.co.uk (Marcus Houlden) References: <94a1qv$l3k$1@athena.ukc.ac.uk> <slrn96jr7l.1dl.tststs@starflower.tststs.ddns.org> <94elb3$33e$1@athena.ukc.ac.uk> <slrn96mcci.de.tststs@starflower.tststs.ddns.org> <94fpmh$3mg$15@athena.ukc.ac.uk> <slrn96mr7o.9nl.jewa@message-id.wahnes-world.de> <94fr6o$3mg$16@athena.ukc.ac.uk> <slrn9722n5.nea.fun@blowtorch.softcell.com.au> <slrn97912l.aro.tststs@starflower.tststs.ddns.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!isdnet!fu-berlin.de!server1.netnews.ja.net!peernews.mcc.ac.uk!godfrey.mcc.ac.uk!spam Newsgroups: news.software.readers Organization: NukeSoft Lines: 33 Reply-To: mhoulden@nukesoft.co.uk NNTP-Posting-Host: hf131.halls.umist.ac.uk X-Trace: godfrey.mcc.ac.uk 981403909 1695 130.88.173.131 (5 Feb 2001 20:11:49 GMT) X-Complaints-To: usenet@godfrey.mcc.ac.uk NNTP-Posting-Date: 5 Feb 2001 20:11:49 GMT X-ICQ-UIN: 29654055 X-Website: http://www.nukesoft.co.uk/personal/ X-PGP: Keys available from http://www.nukesoft.co.uk/personal/contact.htm User-Agent: slrn/0.9.6.3 (Win32)