Thread View: news.software.nntp
36 messages
36 total messages
Started by David Findlay
Sun, 06 Jan 2002 11:41
Yenc
Author: David Findlay
Date: Sun, 06 Jan 2002 11:41
Date: Sun, 06 Jan 2002 11:41
6 lines
1271 bytes
1271 bytes
There's a new binary format for usenet called Yenc(http://www.yenc.org/). Anyone think it will take off? It seems to have some advantages, and the next version of Pan is supposed to support it. What other client programs handle it and can the servers handle it? Thanks, David
Re: Yenc
Author: Andy Green
Date: Sun, 06 Jan 2002 12:04
Date: Sun, 06 Jan 2002 12:04
28 lines
2258 bytes
2258 bytes
Hello David - Version 1.0 of Nographer (http://nographer.com) will support it too (disclaimer: I am the author). It seems to me a very good idea and does deliver the smaller and faster posts it claims. I too have been seeing yEnc posts around, so I don't think it can be too objectionable to the servers. I imagine the biggest problem to its uptake is people using Outlook Express and suchlike which predate it. However there are many better ways to read binaries than Outlook Express :) -Andy > (David Findlay): >There's a new binary format for usenet called >Yenc(http://www.yenc.org/). Anyone think it will >take off? It seems to have some advantages, and the next version of Pan >is supposed to support >it. What other client programs handle it and can the servers handle it? >Thanks, > >David -- Posted using Nographer - News in your Browser http://www.nographer.com
Re: Yenc
Author: Kjetil Torgrim Homme
Date: Sun, 06 Jan 2002 13:12
Date: Sun, 06 Jan 2002 13:12
21 lines
1895 bytes
1895 bytes
[David Findlay] > There's a new binary format for usenet called > Yenc(http://www.yenc.org/). Anyone think it will take off? It > seems to have some advantages, and the next version of Pan is > supposed to support it. What other client programs handle it and > can the servers handle it? Look up earlier discussion in this group. yEnc certainly will help, but it introduces a new scheme of adding attachments to news postings. It would be better if it was used as a content-transfer-encoding in MIME. If you have robust code for handling multi-part MIME, it should be a relatively simple matter to add support for it, i.e. use MIME for marking and tagging content, and yEnc to transform from binary to encoded form. -- Kjetil T. abusing standards for the greater good http://www.microsoft.com:products@3333866552/
Re: Yenc
Author: J.B. Moreno
Date: Sun, 06 Jan 2002 18:14
Date: Sun, 06 Jan 2002 18:14
37 lines
2464 bytes
2464 bytes
In article <pan.2002.01.06.21.41.07.910445.4525@yahoo.com.au>, David Findlay <david_j_findlay@yahoo.com.au> wrote: > There's a new binary format for usenet called Yenc(http://www.yenc.org/). > Anyone think it will take off? It seems to have some advantages, and > the next version of Pan is supposed to support it. What other client > programs handle it and can the servers handle it? It was extensively discussed here before it was added to any program. Anyway, the current situation as *I* know it: Thoth - Mac newsreader (OSX/Carbon) Rosetta - Mac decoder (OSX/Carbon) News Rover - PC newsreader (not yet in released version) XNews - PC newsreader News Pro - PC/unix newsreader (alpha version) Nographer - PC newsreader Newsbin - PC newsreader (beta) MyNews - PC newsreader/server Plus the utility on the yenc web site. Not a whole lot of programs I'll admit, but I think it's got a chance (and of course there are a some like Pan that supposedly plan on supporting it, but haven't actually started doing so yet). As for servers -- servers pass it along without any trouble, check out the MP3 groups (particularly alt.binaries.sounds.music.classical) and you'll find quite a few. You might also look in the newsgroup alt.binaries.test.yenc for example posts (if your server carries it). -- J.B Moreno
Re: Yenc
Author: Curt Welch
Date: Sun, 06 Jan 2002 20:24
Date: Sun, 06 Jan 2002 20:24
33 lines
2678 bytes
2678 bytes
David Findlay <david_j_findlay@yahoo.com.au> wrote: > There's a new binary format for usenet called Yenc(http://www.yenc.org/). > Anyone think it will take off? Yes, I think it already is taking off. > It seems to have some advantages, and the > next version of Pan is supposed to support it. What other client programs > handle it and can the servers handle it? Thanks, Yes, the servers can handle it. Their might be some servers in the world that will have problems with it, but those servers aren't a large enough part of Usenet to slow down the growth of yEnc. The problem is that if you are going to define a new format there would have been better ways to do it. More problems could have been addressed and fixed. But since the Archvier did take the time to define and create yenc and nobody else took the time to do something better, yenc seems to be taking root. The only real advantage to yEnc is that it reduces article sizes by something like 30%. But from the reaction we have seen, it seems that that alone could be enough to force the net to convert to it at least for the large binary files. The more the posts show up in newsgroups, the more presure newsreader authors will find to support it (at least for reading and decoding if not also for posting). And any newsreader that can deal with uudecode format should have little problem adding support for yenc. Most people who have added support for it seem to have gotten the job done in a day or two. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Yenc
Author: Curt Welch
Date: Tue, 12 Mar 2002 17:50
Date: Tue, 12 Mar 2002 17:50
39 lines
3016 bytes
3016 bytes
John Winterman <Jwinterman@hotmailNOSPAM.com> wrote: > Can someone explain how yenc can decrease the encoded file size by > such an extent or why others like uue are relatively poor by > comparison? uuencode uses only 6 bits out of every 8 bit byte. yEnc uses over 7.9 bits in every byte on the average. uuencoded wasted all those bits because they were attempting to encode binary information into to a text file that would be very portable across different types of computers. uuencode was invented before Usenet was even created -- back in a day where lots of computers still used wildly different techniques to represent characters. If you used too many characters, you risk the file not being correctly translated from one computer system to the next. Over time however, usenet has become a fairly well defined transport so the chance of translation errors has dropped significantly. Problems remain with only a very few charcaters (CR LF NULL and TAB). yEnc simply takes advantage of this fact by using all the characters expect those 4. There's nothing new and magical about being able to do this. Other encoding scheems have been discussed many times over the years which had this same power. It's was just a complex issue of deciding if the problems associated with swtiching to a new system was worth the advantage, and whether it made more sense to wait until the problems with those last 4 characters could be resolved as well. Some people just got tired of waiting and debating and created yEnc and talked people into using it. For more information about yEnc, check out the yenc.org site. It talks about history and motivations and lots of stuff. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Yenc
Author: Russ Allbery
Date: Tue, 12 Mar 2002 18:38
Date: Tue, 12 Mar 2002 18:38
20 lines
1942 bytes
1942 bytes
Curt Welch <curt@kcwc.com> writes:
> uuencode uses only 6 bits out of every 8 bit byte. yEnc uses over 7.9
> bits in every byte on the average.
> uuencoded wasted all those bits because they were attempting to encode
> binary information into to a text file that would be very portable
> across different types of computers. uuencode was invented before
> Usenet was even created -- back in a day where lots of computers still
> used wildly different techniques to represent characters.
Note, for example, that uuencoding is portable between machines that don't
distinguish between capital and lowercase letters.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Yenc
Author: Andrew Gierth
Date: Tue, 12 Mar 2002 20:50
Date: Tue, 12 Mar 2002 20:50
27 lines
2408 bytes
2408 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: Curt> uuencoded wasted all those bits because they were attempting to Curt> encode binary information into to a text file that would be Curt> very portable across different types of computers. uuencode Curt> was invented before Usenet was even created -- back in a day Curt> where lots of computers still used wildly different techniques Curt> to represent characters. If you used too many characters, you Curt> risk the file not being correctly translated from one computer Curt> system to the next. uuencode isn't really very good at that, though (which is why MIME base64 exists). base64 is very careful to choose characters for encoding which will survive encoding changes (especially to/from EBCDIC, which has particular problem with characters like []); uuencode, in contrast, is inextricably ASCII-centric and also originally relied on very dubious things like preservation of trailing whitespace (the method of using ` to encode 000000 was a later refinement, still not universally used). The upper/lowercase thing I suspect is entirely a fluke; uuencode uses the middle 64 out of the 128 ASCII values because that is the only obvious block that doesn't include any control characters. -- Andrew.
Re: Yenc
Author: Eric A. Hall
Date: Tue, 12 Mar 2002 21:53
Date: Tue, 12 Mar 2002 21:53
24 lines
2192 bytes
2192 bytes
Curt Welch wrote: > Problems remain with only a very few charcaters (CR LF NULL and TAB). > yEnc simply takes advantage of this fact by using all the characters > expect those 4. Problems are most commonly seen with those four characters, but they are nowhere near the only problem characters. All of the characters from the C0 and C1 sets have problems when they are bounced around as untagged characters, particularly when the data is gatewayed into a private messaging network. When copying and pasting, should that Macintosh mail client treat the block of text that contains C1 as MacRoman, for example? I mean, at least MIME provides a way to say ~this data is eight-bit binary, don't munge it. It wouldn't be as efficient, but a direct encoding scheme that is used on commonly gatewayed transfer protocols like NNTP and SMTP would be best off by escaping 00-1F and 7F-9F. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: Yenc
Author: J.B. Moreno
Date: Wed, 13 Mar 2002 05:45
Date: Wed, 13 Mar 2002 05:45
25 lines
2209 bytes
2209 bytes
In article <3C8E78D1.807D0906@ehsco.com>, Eric A. Hall <ehall@ehsco.com> wrote: > Problems are most commonly seen with those four characters, but they are > nowhere near the only problem characters. All of the characters from the > C0 and C1 sets have problems when they are bounced around as untagged > characters, particularly when the data is gatewayed into a private > messaging network. When copying and pasting, should that Macintosh mail > client treat the block of text that contains C1 as MacRoman, for example? > I mean, at least MIME provides a way to say ~this data is eight-bit > binary, don't munge it. It's a binary -- it shouldn't be treated as anything but what it is, if displaying it then it should be displayed as whatever is at that point in the font. > It wouldn't be as efficient, but a direct encoding scheme that is used on > commonly gatewayed transfer protocols like NNTP and SMTP would be best off > by escaping 00-1F and 7F-9F. Most binaries don't go through gateways. -- J.B. Moreno
Re: Yenc
Author: Eric A. Hall
Date: Wed, 13 Mar 2002 07:07
Date: Wed, 13 Mar 2002 07:07
20 lines
1869 bytes
1869 bytes
"J.B. Moreno" wrote: > > In article <3C8E78D1.807D0906@ehsco.com>, > Eric A. Hall <ehall@ehsco.com> wrote: > > I mean, at least MIME provides a way to say ~this data is eight-bit > > binary, don't munge it. > > It's a binary -- it shouldn't be treated as anything but what it is, if > displaying it then it should be displayed as whatever is at that point > in the font. Yes, well that was kind of the point. yEnc isn't distinguishable from any other text, so it should only store safe text. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: Yenc
Author: Eric A. Hall
Date: Wed, 13 Mar 2002 15:50
Date: Wed, 13 Mar 2002 15:50
10 lines
1472 bytes
1472 bytes
> The possible exclusion of 00-1F I understand, but what's 'wrong' with > chars 7F-9F ? The default C1 set contains destructive terminal-manipulation codes. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: Yenc
Author: Curt Welch
Date: Wed, 13 Mar 2002 17:57
Date: Wed, 13 Mar 2002 17:57
12 lines
1656 bytes
1656 bytes
"Eric A. Hall" <ehall@ehsco.com> wrote: > > The possible exclusion of 00-1F I understand, but what's 'wrong' with > > chars 7F-9F ? > > The default C1 set contains destructive terminal-manipulation codes. Does that include the famous HALT and SET FIRE code? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Yenc
Author: J.B. Moreno
Date: Wed, 13 Mar 2002 18:24
Date: Wed, 13 Mar 2002 18:24
32 lines
2492 bytes
2492 bytes
In article <3C8EFAC0.726B3954@ehsco.com>, Eric A. Hall <ehall@ehsco.com> wrote: > "J.B. Moreno" wrote: > > > > In article <3C8E78D1.807D0906@ehsco.com>, > > Eric A. Hall <ehall@ehsco.com> wrote: > > > > I mean, at least MIME provides a way to say ~this data is eight-bit > > > binary, don't munge it. > > > > It's a binary -- it shouldn't be treated as anything but what it is, if > > displaying it then it should be displayed as whatever is at that point > > in the font. > > Yes, well that was kind of the point. yEnc isn't distinguishable from any > other text, so it should only store safe text. And the point I'm making is that the user shouldn't use tools that do that "munges" the text -- if for some weird reason they want to treat it as text, they should use a text editor that doesn't "munge" text it doesn't understand. For instance, you mentioned the Mac, I'd recommend QUED/M which would allow them to open, edit, view and save a yEncoded file without destorying it. You could even copy and paste all of the parts of a multi-part together and do the editing required to turn it into a "correct" single part document. (BTW -- NONE of the text editors I regularly use understand MIME). -- J.B. Moreno
Re: Yenc
Author: Eric A. Hall
Date: Wed, 13 Mar 2002 19:23
Date: Wed, 13 Mar 2002 19:23
20 lines
1874 bytes
1874 bytes
"J.B. Moreno" wrote: > > Yes, well that was kind of the point. yEnc isn't distinguishable > > from any other text, so it should only store safe text. > > And the point I'm making is that the user shouldn't use tools that do > that "munges" the text What is the proper way to render 7F in a portable fashion? Some munging is always required for most of the C0 and C1 characters. > (BTW -- NONE of the text editors I regularly use understand MIME). Nor should they. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: Yenc
Author: J.B. Moreno
Date: Thu, 14 Mar 2002 18:37
Date: Thu, 14 Mar 2002 18:37
27 lines
2341 bytes
2341 bytes
In article <3C8FA719.A7BB0E2B@ehsco.com>, Eric A. Hall <ehall@ehsco.com> wrote: > "J.B. Moreno" wrote: > > > > Yes, well that was kind of the point. yEnc isn't distinguishable > > > from any other text, so it should only store safe text. > > > > And the point I'm making is that the user shouldn't use tools that do > > that "munges" the text > > What is the proper way to render 7F in a portable fashion? Some munging is > always required for most of the C0 and C1 characters. You don't "render" it in a portable fashion -- you only render it on one machine at a time (well, generally) and each machine should render it however it likes. As long as the byte value isn't being changed, then it doesn't matter /how/ it is rendered as long as it is included in copy/paste type operations. Ditto for all of the other characters. Personally, I like a nice square for byte values that I can't display, but as long as the underlying value isn't lost, it doesn't matter how it looks. -- J.B. Moreno
Re: Yenc
Author: Nuutti Kotivuori
Date: Thu, 14 Mar 2002 20:22
Date: Thu, 14 Mar 2002 20:22
44 lines
3265 bytes
3265 bytes
J. B. Moreno wrote: > In article <3C8FA719.A7BB0E2B@ehsco.com>, > Eric A. Hall <ehall@ehsco.com> wrote: > >> "J.B. Moreno" wrote: >> >> > > Yes, well that was kind of the point. yEnc isn't >> > > distinguishable from any other text, so it should only store >> > > safe text. >> > >> > And the point I'm making is that the user shouldn't use tools >> > that do that "munges" the text >> >> What is the proper way to render 7F in a portable fashion? Some >> munging is always required for most of the C0 and C1 characters. > > You don't "render" it in a portable fashion -- you only render it on > one machine at a time (well, generally) and each machine should > render it however it likes. As long as the byte value isn't being > changed, then it doesn't matter /how/ it is rendered as long as it > is included in copy/paste type operations. Ditto for all of the > other characters. Erh, copy/paste should store the character set of the copied text in addition to the part that is actually copied (like it already does in some places). You cannot expect binary data rendered handled as text to retain the byte values as is. > Personally, I like a nice square for byte values that I can't > display, but as long as the underlying value isn't lost, it doesn't > matter how it looks. Personally, I like UTF-8. And I like stripping/tagging characters that are wrongly encoded. Then there is ISO-2202. Esc and a parenthesis is used to escape values in other character sets. We are way past the times of one byte - one character - font determines how it looks. Charset and encoding determine the "character" that it is - and then it is displayed in the nearest font that happens to have that character. So non-munging expectations for text are not too well-founded. -- Naked
Re: Yenc
Author: John Winterman
Date: Fri, 15 Mar 2002 08:41
Date: Fri, 15 Mar 2002 08:41
55 lines
3534 bytes
3534 bytes
On 12 Mar 2002 17:50:46 GMT, curt@kcwc.com (Curt Welch) wrote: Curt, MAny thanks for the 'laymans' explanation. Would I be right in thinking that this 6/7 bit limitation in transfering data wasn't /isn't just limited to Usenet but to other data transfer eg e-mail? Are we likely to see Yenc also appearing in mail attachments or are there problems with this because of mime. Sorry for my ignorance of the subject but has all this limitation on binary transfer arisen because of the original purpose of the internet - I'm thinking back to ARPA and it's use as a means to transfer just text messages. Once again thanks for taking the trouble to expalin things John >John Winterman <Jwinterman@hotmailNOSPAM.com> wrote: >> Can someone explain how yenc can decrease the encoded file size by >> such an extent or why others like uue are relatively poor by >> comparison? > >uuencode uses only 6 bits out of every 8 bit byte. yEnc uses over >7.9 bits in every byte on the average. > >uuencoded wasted all those bits because they were attempting to encode >binary information into to a text file that would be very portable >across different types of computers. uuencode was invented before Usenet >was even created -- back in a day where lots of computers still used wildly >different techniques to represent characters. If you used too many >characters, you risk the file not being correctly translated from one >computer system to the next. > >Over time however, usenet has become a fairly well defined transport so >the chance of translation errors has dropped significantly. Problems >remain with only a very few charcaters (CR LF NULL and TAB). yEnc simply >takes advantage of this fact by using all the characters expect those >4. > >There's nothing new and magical about being able to do this. Other >encoding scheems have been discussed many times over the years which had >this same power. It's was just a complex issue of deciding if the problems >associated with swtiching to a new system was worth the advantage, and >whether it made more sense to wait until the problems with those last 4 >characters could be resolved as well. > >Some people just got tired of waiting and debating and created yEnc and >talked people into using it. > >For more information about yEnc, check out the yenc.org site. It talks >about history and motivations and lots of stuff.
Re: Yenc
Author: J.B. Moreno
Date: Fri, 15 Mar 2002 23:40
Date: Fri, 15 Mar 2002 23:40
41 lines
3158 bytes
3158 bytes
Nuutti Kotivuori <naked@iki.fi> wrote: > J. B. Moreno wrote: > > In article <3C8FA719.A7BB0E2B@ehsco.com>, > > Eric A. Hall <ehall@ehsco.com> wrote: -snip- > >> What is the proper way to render 7F in a portable fashion? Some > >> munging is always required for most of the C0 and C1 characters. > > > > You don't "render" it in a portable fashion -- you only render it on > > one machine at a time (well, generally) and each machine should > > render it however it likes. As long as the byte value isn't being > > changed, then it doesn't matter /how/ it is rendered as long as it > > is included in copy/paste type operations. Ditto for all of the > > other characters. > > Erh, copy/paste should store the character set of the copied text in > addition to the part that is actually copied (like it already does in > some places). You cannot expect binary data rendered handled as text > to retain the byte values as is. Sure I can -- by using tools that do just that. I certainly can't expect /every/ program that handles text to deal with binary data in that manner, but that just means I don't use those tools when I want the data treated as text. > > Personally, I like a nice square for byte values that I can't > > display, but as long as the underlying value isn't lost, it doesn't > > matter how it looks. > > Personally, I like UTF-8. And I like stripping/tagging characters that > are wrongly encoded. Then there is ISO-2202. Esc and a parenthesis is > used to escape values in other character sets. I like UTF8 too, but not when dealing with stuff (text or data) that isn't in UTF8. And I don't care /what/ is done in /any/ character set -- the stuff in question is a file, not text to be read. -- J.B. Moreno
Re: Yenc
Author: J.B. Moreno
Date: Fri, 15 Mar 2002 23:50
Date: Fri, 15 Mar 2002 23:50
23 lines
1999 bytes
1999 bytes
In article <bkc39u0lp0g5b0utfpn6s8agtjk12l8tdc@4ax.com>, John Winterman <Jwinterman@hotmailNOSPAM.com> wrote: > On 12 Mar 2002 17:50:46 GMT, curt@kcwc.com (Curt Welch) wrote: > > Curt, > > MAny thanks for the 'laymans' explanation. Would I be right in > thinking that this 6/7 bit limitation in transfering data wasn't > /isn't just limited to Usenet but to other data transfer eg e-mail? You would be correct. > Are we likely to see Yenc also appearing in mail attachments or are > there problems with this because of mime. Some MIME problems, and some problems with the fact that although mail is /mainly/ beyond the 7 bit limitation, it is not /completely/ beyond it. So it's unlikely to be a mail standard any time soon. -- J.B. Moreno
Re: Yenc
Author: Curt Welch
Date: Sat, 16 Mar 2002 05:46
Date: Sat, 16 Mar 2002 05:46
42 lines
3115 bytes
3115 bytes
John Winterman <Jwinterman@hotmailNOSPAM.com> wrote: > On 12 Mar 2002 17:50:46 GMT, curt@kcwc.com (Curt Welch) wrote: > > Curt, > > MAny thanks for the 'laymans' explanation. Would I be right in > thinking that this 6/7 bit limitation in transfering data wasn't > /isn't just limited to Usenet but to other data transfer eg e-mail? You would be right. > Are we likely to see Yenc also appearing in mail attachments or are > there problems with this because of mime. Mime is not the problem, it's the fact that e-mail moves though a lot of different types of servers both on and off the Internet and you can't trust all of them to deal with binary as well as most of Usenet can now. MIME might help make it possible to use a binary encoding with e-mail one day beause it will allow the servers to correctly convert files from binary to something like base64 when moving to e-mail mail server that can't support binary. > Sorry for my ignorance of the subject but has all this limitation on > binary transfer arisen because of the original purpose of the internet > - I'm thinking back to ARPA and it's use as a means to transfer just > text messages. No, the internet was designed from the ground up to move binary data. The IP and TCP protocols which are "the internet" are all binary protocols and have no problems moving raw data files (binaries). It's only e-mail and Usenet that were designed at first to only move text messages. On the internet, FTP was always the correct tool for moving binary files. But when they designed the web (HTTP), they made it move any file, like FTP. So then you could move text, or HTML files, or binary files (jpgs) with no problem. The web has now mostly replaced the need for FTP. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Yenc
Author: Nuutti Kotivuori
Date: Sat, 16 Mar 2002 15:28
Date: Sat, 16 Mar 2002 15:28
24 lines
2393 bytes
2393 bytes
J. B. Moreno wrote: > Sure I can -- by using tools that do just that. I certainly can't > expect /every/ program that handles text to deal with binary data in > that manner, but that just means I don't use those tools when I want > the data treated as text. But these are tools for handling binary or character based data - not text data in a common sense. > I like UTF8 too, but not when dealing with stuff (text or data) that > isn't in UTF8. And I don't care /what/ is done in /any/ character > set -- the stuff in question is a file, not text to be read. My point is that _if_ a file is interpreted as _text_ - you cannot assume it to not filter out characters or copy & paste it cleanly. If it is not interpreted as text, the matter is ofcourse completely different. But you cannot assume that text rendition is non-destructing or copy safe. -- Naked
Re: Yenc
Author: Claus Färber
Date: Sat, 16 Mar 2002 16:08
Date: Sat, 16 Mar 2002 16:08
12 lines
1516 bytes
1516 bytes
Eric A. Hall <ehall@ehsco.com> schrieb/wrote: > Yes, well that was kind of the point. yEnc isn't distinguishable from any > other text, so it should only store safe text. Other text usually does not use characters with decimal values in 1-8,11,14-26,28-31. Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: Yenc
Author: Claus Färber
Date: Sat, 16 Mar 2002 16:11
Date: Sat, 16 Mar 2002 16:11
24 lines
2248 bytes
2248 bytes
J.B. Moreno <planb@newsreaders.com> schrieb/wrote: > You don't "render" it in a portable fashion -- you only render it on > one machine at a time (well, generally) and each machine should render > it however it likes. As long as the byte value isn't being changed, > then it doesn't matter /how/ it is rendered as long as it is included > in copy/paste type operations. Which will not be the case on systems where the system charset isn't the same charset as the default charset the newsreader assumes when reading postings without a correct charset label. For example, if the newsreader assumes the posting is ISO-8859-1 and the system charset is UTF-8 (or UTF-16, ISO-8859-15, CP850, MacRoman) the data *WILL* be corrupted. And then, some newsreaders might even replace byte values deemed illegal by "?" or U+FFFD (or whatever this is in the local encoding). Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: Yenc
Author: Claus Färber
Date: Sat, 16 Mar 2002 16:20
Date: Sat, 16 Mar 2002 16:20
24 lines
2136 bytes
2136 bytes
J.B. Moreno <planb@newsreaders.com> schrieb/wrote: > Some MIME problems, and some problems with the fact that although mail > is /mainly/ beyond the 7 bit limitation, it is not /completely/ beyond > it. So it's unlikely to be a mail standard any time soon. Actually, there are many MTAs that would handle yEnc-encoded binaries correctly (qmail, for example). Sendmail would probably insist to autocorrup^H^H^H^H^H^Hconvert them to quoted-printable (or maybe base64), labelling them as being in an "unknown-8-bit" charset (most mail user agents that deal with UUencode would already have to be able to handle that). There are, however, several "corporate mail servers" (i.e. expensive, dysfunctional software products) that would surely completly corrupt these messages (you have to be glad if they don't produce mailing loops or flood mailing lists with misdirected bounces). Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: Yenc
Author: J.B. Moreno
Date: Sun, 17 Mar 2002 04:24
Date: Sun, 17 Mar 2002 04:24
22 lines
2059 bytes
2059 bytes
In article <8KzPfhH3cDB@3247.org>, Claus F�rber <claus-usenet-20020316@faerber.muc.de> wrote: > J.B. Moreno <planb@newsreaders.com> schrieb/wrote: > > Some MIME problems, and some problems with the fact that although mail > > is /mainly/ beyond the 7 bit limitation, it is not /completely/ beyond > > it. So it's unlikely to be a mail standard any time soon. > > Actually, there are many MTAs that would handle yEnc-encoded > binaries correctly (qmail, for example). -snip- Right, many but not all -- we seem to be in violent agreement: in news you can simply ignore the 7 bit limitation, but that's not the case for mail. Hmn, do you know how sendmail and the corporate clients would deal with QP-lite (labeled as just QP)? -- J.B. Moreno
Re: Yenc
Author: J.B. Moreno
Date: Sun, 17 Mar 2002 04:26
Date: Sun, 17 Mar 2002 04:26
19 lines
2060 bytes
2060 bytes
In article <87663wedlr.fsf@iki.fi>, Nuutti Kotivuori <naked@iki.fi> wrote: > My point is that _if_ a file is interpreted as _text_ - you cannot > assume it to not filter out characters or copy & paste it cleanly. If > it is not interpreted as text, the matter is ofcourse completely > different. > > But you cannot assume that text rendition is non-destructing or copy > safe. You shouldn't assume it, but you can *verify* it. And if it doesn't work you can switch to something else -- for example there was a problem with slrn saving yEncoded files, but that's been addressed in the latest release. -- J.B. Moreno
Re: Yenc
Author: Eric A. Hall
Date: Sun, 17 Mar 2002 05:55
Date: Sun, 17 Mar 2002 05:55
31 lines
2632 bytes
2632 bytes
"J.B. Moreno" wrote: > Hmn, do you know how sendmail and the corporate clients would deal with > QP-lite (labeled as just QP)? Some mail systems will convert from QP into some other format if possible, so it wouldn't be safe to do that. Also, if something translated from and back to QP (don't ask) then the results wouldn't work out. Best to give it a real name and let systems treat it as opaque. Most mail systems would handle yEnc fine if it were toned down some. If you wanted to be really safe about it, this would mean: 78-char lines (gateways are hell) 00-1F and 7F-9F were encoded (only *required* if MIME isn't used) well-documented "Content-Transfer-Encoding: X-yEnc" format I can't think of a single mail system that would barf on that. The problem as it stands now is that the data is not tagged in any way whatsoever, so mail systems default to treating it as text (text/plain with 7bit is the default). Just wrapping it in MIME would go a long way to preventing the problems, or should be anyway. It would also open the door to additional useful things like app/partial, which could work with any known encoding format. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: Yenc
Author: Claus Färber
Date: Sun, 17 Mar 2002 10:56
Date: Sun, 17 Mar 2002 10:56
14 lines
1719 bytes
1719 bytes
Eric A. Hall <ehall@ehsco.com> schrieb/wrote: > Most mail systems would handle yEnc fine if it were toned down some. If > you wanted to be really safe about it, this would mean: > 78-char lines (gateways are hell) > 00-1F and 7F-9F were encoded (only *required* if MIME isn't used) > well-documented "Content-Transfer-Encoding: X-yEnc" format And what exactly would be the advantage over base64 then? Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: Yenc
Author: Nuutti Kotivuori
Date: Sun, 17 Mar 2002 15:05
Date: Sun, 17 Mar 2002 15:05
31 lines
2741 bytes
2741 bytes
J. B. Moreno wrote: > In article <87663wedlr.fsf@iki.fi>, > Nuutti Kotivuori <naked@iki.fi> wrote: > >> My point is that _if_ a file is interpreted as _text_ - you cannot >> assume it to not filter out characters or copy & paste it >> cleanly. If it is not interpreted as text, the matter is ofcourse >> completely different. >> >> But you cannot assume that text rendition is non-destructing or >> copy safe. > > You shouldn't assume it, but you can *verify* it. And if it doesn't > work you can switch to something else -- for example there was a > problem with slrn saving yEncoded files, but that's been addressed > in the latest release. Err, this is still a bit weird. I don't think text rendition even _should_ be non-destructing - if it's not text, it should not be rendered as one in any case. But this is getting really sidetracked - I thought the original point was that the 'font' or rendering would not matter when copypasting text to a decode program or something similar. And my point was simply that if it is rendered as text at all, it can have already been mangled there. And that it is not a bug in the program, just normal sane rendition of messages. -- Naked
Re: Yenc
Author: Eric A. Hall
Date: Sun, 17 Mar 2002 16:27
Date: Sun, 17 Mar 2002 16:27
19 lines
2069 bytes
2069 bytes
Claus F�rber wrote: > > Eric A. Hall <ehall@ehsco.com> schrieb/wrote: > > Most mail systems would handle yEnc fine if it were toned down some. > > If you wanted to be really safe about it, this would mean: > > 78-char lines (gateways are hell) > > 00-1F and 7F-9F were encoded (only *required* if MIME isn't used) > > well-documented "Content-Transfer-Encoding: X-yEnc" format > > And what exactly would be the advantage over base64 then? Base64 encodes *all* data, similar to UU, which is not one of the requirements listed above. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: Yenc
Author: J.B. Moreno
Date: Sun, 17 Mar 2002 20:41
Date: Sun, 17 Mar 2002 20:41
29 lines
2357 bytes
2357 bytes
In article <3C942FEA.4BA045BB@ehsco.com>, Eric A. Hall <ehall@ehsco.com> wrote: > "J.B. Moreno" wrote: > > > Hmn, do you know how sendmail and the corporate clients would deal with > > QP-lite (labeled as just QP)? > > Some mail systems will convert from QP into some other format if possible, > so it wouldn't be safe to do that. Also, if something translated from and > back to QP (don't ask) then the results wouldn't work out. Best to give it > a real name and let systems treat it as opaque. Provided that the systems doing the translating handled QP the way most newsreaders do (i.e. anything not escaped is left as-is) then translation wouldn't be a problem -- it would remove the advantage, but otherwise would not matter. > Most mail systems would handle yEnc fine if it were toned down some. If > you wanted to be really safe about it, this would mean: Tone it down and you might as well stick with what exists -- either it's safe to use an 8 bit format, or it's not. -snip- -- J.B. Moreno
Re: Yenc
Author: Eric A. Hall
Date: Sun, 17 Mar 2002 21:20
Date: Sun, 17 Mar 2002 21:20
25 lines
2538 bytes
2538 bytes
"J.B. Moreno" wrote: > Tone it down and you might as well stick with what exists -- either > it's safe to use an 8 bit format, or it's not. There's nothing that prevents eight-bit data in the list I presented. Although I did say that encoding *SOME* of the characters would be helpful, I also said that was not a requirement. Wrapping it in legal MIME is enough to tell most systems that the data is something other than text/plain. The additional (and limited) escapes are only listed as additional safety measures. The hardest part about this will be writing up the CTE spec. Look, you could almost use "8bit" encoding except that uses the CRLF EOL as part of the data. You could almost use "binary" except that doesn't impose any CRLF EOLs at all (inline CRLFs are treated as part of the data). So you write up "X-yEnc" as something in-between "8bit" and "binary", with the few minimal existing escapes you already have. The only real difference at that point is (a) shorter line-lengths and (b) it is wrapped in MIME. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: Yenc
Author: Claus Färber
Date: Mon, 18 Mar 2002 10:07
Date: Mon, 18 Mar 2002 10:07
22 lines
2133 bytes
2133 bytes
Eric A. Hall <ehall@ehsco.com> schrieb/wrote: > Claus F�rber wrote: >> And what exactly would be the advantage over base64 then? > Base64 encodes *all* data, similar to UU, which is not one of the > requirements listed above. I don't see any requirement that some bytes should be left as-is. All that matters is the size of the encoded binary. With the scheme you proposed, 162 octet values would have to be escaped, i.e. would be replaced by two bytes (162 because you need two escape characters). That means that 63% of the octets would be doubled in size, increasing the size of the binary by 63%. Base64 only has an overhead of 33%. (In both cases, add another 1% for line breaks.) Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: Yenc
Author: Eric A. Hall
Date: Mon, 18 Mar 2002 17:39
Date: Mon, 18 Mar 2002 17:39
23 lines
2252 bytes
2252 bytes
Claus F�rber wrote: > > Eric A. Hall <ehall@ehsco.com> schrieb/wrote: > > Base64 encodes *all* data, similar to UU, which is not one of the > > requirements listed above. > All that matters is the size of the encoded binary. With the > scheme you proposed, 162 octet values would have to be escaped, > i.e. would be replaced by two bytes (162 because you need two > escape characters). Only 33 character codes were suggested to be escaped (00-1F and 7F-9F). If that were used, the 222 codes would be passed directly through. However, to repeat myself, those 33 codes would not need to be encoded for MIME encapsulation to work, although it would improve the robustness whenever a message went through legacy mail systems. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: Yenc
Author: Dave Korn
Date: Tue, 19 Mar 2002 15:14
Date: Tue, 19 Mar 2002 15:14
56 lines
4115 bytes
4115 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote in message
news:140320021337072591%planb@newsreaders.com...
> In article <3C8FA719.A7BB0E2B@ehsco.com>,
> Eric A. Hall <ehall@ehsco.com> wrote:
>
> > "J.B. Moreno" wrote:
> >
> > > > Yes, well that was kind of the point. yEnc isn't distinguishable
> > > > from any other text, so it should only store safe text.
> > >
> > > And the point I'm making is that the user shouldn't use tools that do
> > > that "munges" the text
> >
> > What is the proper way to render 7F in a portable fashion? Some munging
is
> > always required for most of the C0 and C1 characters.
>
> You don't "render" it in a portable fashion -- you only render it on
> one machine at a time (well, generally) and each machine should render
> it however it likes. As long as the byte value isn't being changed,
> then it doesn't matter /how/ it is rendered as long as it is included
> in copy/paste type operations. Ditto for all of the other characters.
Cutting and pasting binary data into a windoze DOS prompt *will* modify
certain C0/C1 characters according to the currently selected DOS code page.
Just a data point FYI. I don't know how the windows shell clipboard is
handled but it's possible that's another point at which text data might be
modified according to the local host's internationalisation settings. In
Outlook Express, the setting for language/charset encoding chosen on a given
post might also involve a code-page-like transformation of one characterset
to another.
The thing is that it's precisely because text is expected to be text and
not binary data, that some systems consider it acceptable to apply certain
transformations to it that will preserve the semantic meaning of certain
characters (by making them correspond to the correct glyph in the system's
font) but alter the underlying binary representation of the text.
[Disclaimer: I'm not 100% on the concepts underlying the use of the DOS code
page, but I *am* 100% sure that you can't cut+paste binary data without
finding it getting mangled here and there]
DaveK
--
moderator of
alt.talk.rec.soc.biz.news.comp.humanities.meow.misc.moderated.meow
Burn your ID card! http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!
Proud Member of the Exclusive "I have been plonked by Davee because he
thinks I'm interesting" List Member #<insert number here>
Master of Many Meowing Minions
Holder of the exhalted PF Chang's Crab Wonton Award for kook spankage above
and beyond the call of hilarity.
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