Possible DSDN Wiki update bug...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Possible DSDN Wiki update bug...

Jurko Gospodnetic
Hi all

  Sorry, but didn't know a better place to report this to...

  DSDN seems to have a slight 'bug' in the 'DsdnWikiUpdate>>parseChanges:'
method
when trying to parse the '<td><strong>Pages modified on' line from Wiki
changes file.

  It parses that date using 'Date readFrom: stream format: 'd MMMM yyyy''
which in turn
compares the read string with month names from Windows regional setting.
This means that
the code works if and only if your Windows regional settings are set so that
month names
there match those in Wiki's changes file (which from what I can see are
standard English
month names 'January', 'February', etc...).

  I'm using the latest DSDN version (DSDN5a) available from web page:
'http://analgesic.anest.ufl.edu/anest4/bills/DSDN_news.htm'.

  Hope this helps.
    Jurko


Reply | Threaded
Open this post in threaded view
|

Re: Possible DSDN Wiki update bug...

Ian Bartholomew-18
Jurko,

>   Sorry, but didn't know a better place to report this to...

It's as good as any :-)  Thanks for the report.

>   DSDN seems to have a slight 'bug' in the
> 'DsdnWikiUpdate>>parseChanges:' method
> when trying to parse the '<td><strong>Pages modified on' line from
> Wiki changes file.

I had the same problem with the news archive part of DSDN (see
DSDNArchiveDocument>>parseTimestamp:) and also WIKI documents
(WIKIDocument>>editDateFromString) so I don't really know why I didn't
do the same with the WIKI changes file.  <Sigh>

I'll have a look into the best way to solve it, possibly a common
#parseEnglishTimestamp method somewhere, and update the DSDN package.

Thanks again.

--
Ian

Use the Reply-To address to contact me.
Mail sent to the From address is ignored.


Reply | Threaded
Open this post in threaded view
|

Re: Possible DSDN Wiki update bug...

Ian Bartholomew-18
I wrote:

> I'll have a look into the best way to solve it, possibly a common

I've just uploaded the following to my web site which should, hopefully,
cure the problem recognising dates on a system using non-English
regional settings.

http://www.idb.me.uk/files/dsdn503update.zip

Unzip it, file it in and then resave the DSDN package.

It will :-
add Date class>>fromEnglishString:
update DsdnWikiDocument>>getLastEditDate
update DsdnWikiUpdate.>>parseChanges:
delete DsdnWikiDocument>>editDateFromString:

We will update the main DSDN download later...

--
Ian

Use the Reply-To address to contact me.
Mail sent to the From address is ignored.


Reply | Threaded
Open this post in threaded view
|

Re: Possible DSDN Wiki update bug...

Jurko Gospodnetic
Hi Ian.

  Wow! Great 'customer' support! :-)

> I've just uploaded the following to my web site which should,
>  hopefully, cure the problem recognising dates on a system using
> non-English regional settings.

  Thanks...

  Best regards,
    Jurko