Re: MIME::Base64 bugs?
- From: Marcus Beranek <errormsg@xxxxxxx>
- Date: Sat, 16 Jun 2007 15:04:33 +0200
sonet wrote:
The MIME::Base64 will convert \n to \r\n.
$a="1234\n4567\n";
$a=encode_base64($a,0);
print decode_base64($a);
The result is 1234\r\n4567\r\n.
Maybe this is caused by the following: the microsoft implementation of stdio
converts the "\n" to a "\r\n" automaticly on input/output. so you can have
a "\n" in memory throughout your whole perl-script, but upon printing or
writing to file it gets converted ...
But i'm not quite sure about this, maybe there are also different flavours
of stdio, which behave differently, i don't know.
HTH,
Marcus
--
-mb-
.
- References:
- MIME::Base64 bugs?
- From: sonet
- MIME::Base64 bugs?
- Prev by Date: New Module: Text::Stripper
- Next by Date: Re: DBI/DBD-Oracle and Proxy
- Previous by thread: Re: MIME::Base64 bugs?
- Next by thread: Re: MIME::Base64 bugs?
- Index(es):
Relevant Pages
|