🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Paul Emmons Fri, 01 Feb 2002 01:52
yDec doesn't work for me
#56272
Author: Paul Emmons
Date: Fri, 01 Feb 2002 01:52
19 lines
1569 bytes
I really like the idea of yDec and will recommend it as soon as I can
get it to work myself.

I'm still using Free Agent as a news reader.  Saving a yEnc file to a
disc file and running yDec on it from a DOS window (which is the way
I'd prefer to do it), the latter always reports that the file is
corrupt.

What can I do?

I suspect that the problem is due to differences in the way Windows
and DOS represent certain "high-ascii" characters.   Some program is
doing an unnecessary conversion or not doing a necessary one.

Sorry if this question has been asked and answered many times.  If
this newsgroup has a FAQ file available somewhere, please point me to
it.  Thank you.

Re: yDec doesn't work for me
#56276
Author: The Archiver
Date: Fri, 01 Feb 2002 06:51
55 lines
2985 bytes
pemmons@voicenet.com (Paul Emmons) wrote:

>I'm still using Free Agent as a news reader.  Saving a yEnc file to a
>disc file and running yDec on it from a DOS window (which is the way
>I'd prefer to do it), the latter always reports that the file is
>corrupt.

If you are using the original yDec.exe from the ydec.org site
and it reports that the file is corrupt, then it is corrupt
- or the size/crc values have been created by a new beta tool.
(I've been notified that a new power post clone has problems
with creating correct lines).

You can use this type of ydec-command on a file:

    ydec  message.txt  >  log.txt

(if message.txt is the file to decode).
Then 'log.txt' will contain detailled information about the corruption.

>What can I do?

Perhaps the XNews decoder is more tolerant for some encoding
errors. yDec.exe is _not_ tolerant. It insists on correct line sizes.
However it stores files with incorrect total size of crc values 
under special filenames with an error-type-extension).

>I suspect that the problem is due to differences in the way Windows
>and DOS represent certain "high-ascii" characters.   Some program is
>doing an unnecessary conversion or not doing a necessary one.

I have not seen yet Forte Agent or Free Agent changing the content
of a message during saving it to disk.

>Sorry if this question has been asked and answered many times.  If
>this newsgroup has a FAQ file available somewhere, please point me to
>it.  Thank you.

Until now there is only one known bug in ydec.exe:
It does not work properly if the working directory contains a space
in the path (c:\own files\....)

More and more tools are supporting yEnc.
Unfortunately even an easy format as yEnc can be implemented 
with bugs - so we have to find out them - and notify the author(s).

Thanks for your report.
Feel free to contact me directly by eMail (or here) for further 
discussion of your problem(s).

-- 
Juergen, [The Archiver]


Re: yDec doesn't work for me
#56278
Author: Paul Emmons
Date: Fri, 01 Feb 2002 23:07
75 lines
3713 bytes
On 01 Feb 2002 07:51:21 +0100, archiver@i3w.com (The Archiver) wrote:

>yDec.exe is _not_ tolerant. It insists on correct line sizes.

The line sizes of the coded file vary greatly.  If they should not,
then indeed the file must be corrupt.  

The log file from debugging contains over 14,000 lines with the
text "Last line."  This would not seem to be normal behavior.

It reports "1 error" at the end: "Corrupt yEnc binary - endsize
mismatch."  

I guess I'll have to dare to take a look at the C source and try to
determine what is going on.  I'm a tolerable C programmer in DOS, but
have never written a C program for Windows.

Thank you for your help.  

>pemmons@voicenet.com (Paul Emmons) wrote:
>
>>I'm still using Free Agent as a news reader.  Saving a yEnc file to a
>>disc file and running yDec on it from a DOS window (which is the way
>>I'd prefer to do it), the latter always reports that the file is
>>corrupt.
>
>If you are using the original yDec.exe from the ydec.org site
>and it reports that the file is corrupt, then it is corrupt
>- or the size/crc values have been created by a new beta tool.
>(I've been notified that a new power post clone has problems
>with creating correct lines).
>
>You can use this type of ydec-command on a file:
>
>    ydec  message.txt  >  log.txt
>
>(if message.txt is the file to decode).
>Then 'log.txt' will contain detailled information about the corruption.
>
>>What can I do?
>
>Perhaps the XNews decoder is more tolerant for some encoding
>errors. yDec.exe is _not_ tolerant. It insists on correct line sizes.
>However it stores files with incorrect total size of crc values 
>under special filenames with an error-type-extension).
>
>>I suspect that the problem is due to differences in the way Windows
>>and DOS represent certain "high-ascii" characters.   Some program is
>>doing an unnecessary conversion or not doing a necessary one.
>
>I have not seen yet Forte Agent or Free Agent changing the content
>of a message during saving it to disk.
>
>>Sorry if this question has been asked and answered many times.  If
>>this newsgroup has a FAQ file available somewhere, please point me to
>>it.  Thank you.
>
>Until now there is only one known bug in ydec.exe:
>It does not work properly if the working directory contains a space
>in the path (c:\own files\....)
>
>More and more tools are supporting yEnc.
>Unfortunately even an easy format as yEnc can be implemented 
>with bugs - so we have to find out them - and notify the author(s).
>
>Thanks for your report.
>Feel free to contact me directly by eMail (or here) for further 
>discussion of your problem(s).
>
>-- 
>Juergen, [The Archiver]
>
>

Re: yDec doesn't work for me
#56387
Author: Rad Tos
Date: Sat, 09 Feb 2002 01:11
24 lines
1954 bytes
On Fri, 01 Feb 2002 01:52:23 GMT, pemmons@voicenet.com (Paul Emmons)
wrote:

>I really like the idea of yDec and will recommend it as soon as I can
>get it to work myself.
>
>I'm still using Free Agent as a news reader.  Saving a yEnc file to a
>disc file and running yDec on it from a DOS window (which is the way
>I'd prefer to do it), the latter always reports that the file is
>corrupt.
>
>What can I do?
>
>I suspect that the problem is due to differences in the way Windows
>and DOS represent certain "high-ascii" characters.   Some program is
>doing an unnecessary conversion or not doing a necessary one.
>
>Sorry if this question has been asked and answered many times.  If
>this newsgroup has a FAQ file available somewhere, please point me to
>it.  Thank you.


perhaps save in the 'raw' (unformatted) option would fix?
Re: yDec doesn't work for me
#56454
Author: Yume no Hikari
Date: Mon, 11 Feb 2002 19:30
37 lines
2783 bytes
On Fri, 01 Feb 2002 16:07:13 -0700, Paul Emmons wrote:

> On 01 Feb 2002 07:51:21 +0100, archiver@i3w.com (The Archiver) wrote:
> 
>>yDec.exe is _not_ tolerant. It insists on correct line sizes.
> 
> The line sizes of the coded file vary greatly.  If they should not, then
> indeed the file must be corrupt.
> 
> The log file from debugging contains over 14,000 lines with the text
> "Last line."  This would not seem to be normal behavior.
> 
> It reports "1 error" at the end: "Corrupt yEnc binary - endsize
> mismatch."
> 
> I guess I'll have to dare to take a look at the C source and try to
> determine what is going on.  I'm a tolerable C programmer in DOS, but
> have never written a C program for Windows.
> 
> Thank you for your help.
> 
I think the issue here may be that the minimum required line size is too
*long*.  It's quite possible that a lot of software out there is saving
these files and wrapping them at 78 or 80 columns, resulting in 80/48 or
80/80/80/16 splits in the lines.  If that's the case, I wouldn't be
surprised to also see broken escapes and worse problems.

Archiver: I'm going to be sending you a list of proposed changes fairly
soon; I've been working from the format document to produce an
encoder/decoder library for Unix systems and a few notable issues have
shown up.  I expect that among them will be a more flexible line length,
with a default of 64-65 characters per line, because of the wrap issue
and because of how many autoposters specify maximum part size.  Worth
considering...

-hikari/Joel
Re: yDec doesn't work for me
#56458
Author: Kjetil Torgrim Homme
Date: Mon, 11 Feb 2002 23:54
26 lines
2254 bytes
[Yume no Hikari]

>   I think the issue here may be that the minimum required line size
>   is too *long*.  It's quite possible that a lot of software out
>   there is saving these files and wrapping them at 78 or 80 columns,
>   resulting in 80/48 or 80/80/80/16 splits in the lines.  If that's
>   the case, I wouldn't be surprised to also see broken escapes and
>   worse problems.

I really must agree with Russ Alberry: If you want a format which is
robust in face of broken software, use BASE64.  If you want an
efficient format which relies on servers and clients following
specifications, use yDec, and complain to their authors whenever the
transfer breaks.

>   I expect that among them will be a more flexible line length, with
>   a default of 64-65 characters per line, because of the wrap issue
>   and because of how many autoposters specify maximum part size.
>   Worth considering...

The added CR LF is a significant part of the overhead in yEnc.  You
suggest doubling it.  I think that's a very bad idea.

-- 
Kjetil T.
Re: yDec doesn't work for me
#56461
Author: J.B. Moreno
Date: Tue, 12 Feb 2002 03:19
18 lines
1910 bytes
In article <1rit93shg1.fsf@fjorir.ifi.uio.no>, 
 Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:

> [Yume no Hikari]
-snip-
> >   I expect that among them will be a more flexible line length,
> >   with a default of 64-65 characters per line, because of the wrap
> >   issue and because of how many autoposters specify maximum part
> >   size. Worth considering...
> 
> The added CR LF is a significant part of the overhead in yEnc.  You
> suggest doubling it.  I think that's a very bad idea.

Right, if anything the  "default" line length in yEnc should be doubled
instead of halved -- currently the CR LF overhead accounts for roughly
half of the overhead associated with yEnc, doubling the line length
would cut the overhead by 25%.
Re: yDec doesn't work for me
#56464
Author: Yume no Hikari
Date: Tue, 12 Feb 2002 09:27
20 lines
2308 bytes
On Mon, 11 Feb 2002 20:19:25 -0700, J.B. Moreno wrote:

>> The added CR LF is a significant part of the overhead in yEnc.  You
>> suggest doubling it.  I think that's a very bad idea.
> 
> Right, if anything the  "default" line length in yEnc should be doubled
> instead of halved -- currently the CR LF overhead accounts for roughly
> half of the overhead associated with yEnc, doubling the line length
> would cut the overhead by 25%.

I admittedly don't know what precedents exist for auto-wrapping on
servers; the issue I see, however, is that if something *does* auto-wrap
those lines (server or client alike), chances are better than even that
it's going to break the decoder - short lines seem to count as an error
condition in most decoders.  And ah, is overhead all we're concerning
ourselves with here? It's not of particularly much use if it breaks that
many more posts just to reduce overhead from 2% to 1.5%.

-hikari/Joel
Re: yDec doesn't work for me
#56477
Author: J.B. Moreno
Date: Wed, 13 Feb 2002 04:14
41 lines
3076 bytes
In article <pan.2002.02.12.02.27.16.745392.19598@nevermind.where>, 
 Yume no Hikari <hikari@nevermind.where> wrote:

> On Mon, 11 Feb 2002 20:19:25 -0700, J.B. Moreno wrote:
> 
> >> The added CR LF is a significant part of the overhead in yEnc.  You
> >> suggest doubling it.  I think that's a very bad idea.
> > 
> > Right, if anything the  "default" line length in yEnc should be doubled
> > instead of halved -- currently the CR LF overhead accounts for roughly
> > half of the overhead associated with yEnc, doubling the line length
> > would cut the overhead by 25%.
> 
> I admittedly don't know what precedents exist for auto-wrapping on
> servers;

The precedent is: doesn't happen, not a problem.

> the issue I see, however, is that if something *does* auto-wrap those
> lines (server or client alike), chances are better than even that
> it's going to break the decoder - short lines seem to count as an
> error condition in most decoders. 

Since I don't know of any client that wraps upon saving -- change the
end of line character(s) sure (i.e. switch from CRLF to CR or LF), but
not actually wrap the body, and I can't imagine why it would, I think
your concern is unnecessary.

And of course moot for those that are aware of yEnc and what it
entails, because they simply handle it correctly.

> And ah, is overhead all we're concerning ourselves with here? It's
> not of particularly much use if it breaks that many more posts just
> to reduce overhead from 2% to 1.5%.

Not so low -- it reduces it from (on average) 3.125% to 2.343%.

And you'e right, that's not a lot, but as I said, I don't think it
breaks any post (certainly not any more, if the software can handle 128
char lines, then it will be able to handle 254 char lines).
Re: yDec doesn't work for me
#56485
Author: Kjetil Torgrim Homme
Date: Wed, 13 Feb 2002 11:06
13 lines
1708 bytes
[J.B. Moreno]

>   And you'e right, that's not a lot, but as I said, I don't think it
>   breaks any post (certainly not any more, if the software can
>   handle 128 char lines, then it will be able to handle 254 char
>   lines).

Let's say 252 to be on the safe side.  buffer[256], but minus
dot-stuffing, and terminating CR LF NUL.

-- 
Kjetil T.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads