Chris Ridd wrote:

On 1/4/04 10:55 am, jehan.procaccia <[EMAIL PROTECTED]> wrote:



I can assure you that it didn't worked without binmode(TMP) ! and now
it works fine with it !
I run a Red Hat Linux release 9 (Shrike) and perl v5.8.0.
??



It wouldn't be a problem with something trying to utf8 encode the data would it?

Cheers,

Chris



Indeed ! I know I had lot of problems with utf8 ... so here's my test on that after removing binmode(TMP) from my script:
$ echo $LANG
en_US.UTF-8
$ ./exportjpegphoto.pl
$ file photos/procacci
photos/procacci: data


file not viewable :-(

$ export LANG=en_US
$ ./exportjpegphoto.pl
$ file photos/procacci
photos/procacci: JPEG image data, JFIF standard 1.01, aspect ratio, 1 x 1

Great that's it :-)
So what is the best solution, playing with export LANG or use binmode() ?

thanks.

Reply via email to