🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Curt Welch Fri, 08 Nov 2002 15:43
Re: programming yenc decoder
#61867
Author: Curt Welch
Date: Fri, 08 Nov 2002 15:43
59 lines
2663 bytes
kjhjk <kjhjkNOSPAM@hotmail.com> wrote:
> Hi,
>
> can you help me to ydecode a file ?
>
> * source file begins with

Never put =ybegin on a line by itself in a news article if you
want people to see it.  Anyone using a newsreader which supports
yEnc will think the rest of your article is yEnc data.

> =ybegin part=1 line=128 size=146094 name=test
> =ypart begin=1 end=146094
> ))=J*:tpsp*+,+*r*r**)8&#8482;z��������J]XZ*blsw-*****:*r***
>
> * my decoder output :
>
> FF EO 00 10 4A 46 49 46 00 01 02 01 00 48
>
> 5 bytes before "JFIF" sequence (4A 46 49 46)

You only show 4 bytes before JFIF

> * another decoder output :
>
> FF D8 FF EO 00 10 4A 46 49 46 00 01 02 00 48
> 6 bytes before "JFIF" sequence (4A 46 49 46)
>
> there are 6 bytes

My decoder output this for the data you included above:

 ff ff e0 00 10 4a 46 49

Maybe that is what your's also did?

> * what's wrong with my code ?
>
>   if ($car=61)��
>             $i:=$i+1
>             $car:=Code ascii($ligne�$i&#8222;)
>             $outputcar:=$car-64-42
>
>           else
>             $outputcar:=$car-42
>         endif

Looks correct other than the strange stuff inside ascii().

The 6 byte version is a valid JPG file, the 5 byte version isn't.

The data you posted does decode to a 5 byte version.  There seems to be a
^B missing from the yEnc data in order to make it decode correctly.  What
happened to that missing ^B?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: programming yenc decoder
#61875
Author: kjhjk
Date: Fri, 08 Nov 2002 17:03
60 lines
2428 bytes
> Never put =ybegin on a line by itself in a news article if you
> want people to see it.  Anyone using a newsreader which supports
> yEnc will think the rest of your article is yEnc data.

OK !!


> > * my decoder output :
> >
> > FF EO 00 10 4A 46 49 46 00 01 02 01 00 48
> >
> > 5 bytes before "JFIF" sequence (4A 46 49 46)
> 
> You only show 4 bytes before JFIF

exact, because I delete programmatically the first byte
I will correct my code

> 
> > * another decoder output :
> >
> > FF D8 FF EO 00 10 4A 46 49 46 00 01 02 00 48
> > 6 bytes before "JFIF" sequence (4A 46 49 46)


> My decoder output this for the data you included above:
> 
>  ff ff e0 00 10 4a 46 49

same output as mine except for the first byte I delete


> 
> Maybe that is what your's also did?
> 
> > * what's wrong with my code ?
> >
> 
> Looks correct other than the strange stuff inside ascii().

some caracteres not well transported by nntp
read "code ascii($ligne($i))"

> 
> The 6 byte version is a valid JPG file, the 5 byte version isn't.
> 
> The data you posted does decode to a 5 byte version.  There seems to be a
> ^B missing from the yEnc data in order to make it decode correctly.  What
> happened to that missing ^B?

thanx !!

and sorry for my english

-- 
anti-spam email address :
- enlevez "NOSPAM" avant de repondre
- please remove "NOSPAM" from email address 
Re: programming yenc decoder
#61877
Author: those who know me have no need o...
Date: Fri, 08 Nov 2002 18:47
14 lines
1671 bytes
in news.software.nntp i read:

>Never put =ybegin on a line by itself in a news article if you
>want people to see it.  Anyone using a newsreader which supports
>yEnc will think the rest of your article is yEnc data.

blah.  msoe's `begin' silliness isn't enough, you are telling me that some
newsreaders are also so poorly crafted that those few bytes will trigger
some stupid mode-ish change?  name them, i shall denounce them from the
heights.

-- 
bringing you boring signatures for 17 years
Re: programming yenc decoder
#61880
Author: those who know me have no need o...
Date: Fri, 08 Nov 2002 18:50
18 lines
1654 bytes
in news.software.nntp i read:

>> strange stuff inside ascii().
>
>some caracteres not well transported by nntp
>read "code ascii($ligne($i))"

nntp handled them without any problem.  your newsreader failed to mark the
article as having non-ascii characters, i.e., it should have had the
appropriate mime headers naming the charset involved.

>and sorry for my english

your english was just fine.

-- 
bringing you boring signatures for 17 years
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