Hello,

PROBLEM DESCRIPTION
-------------------

Recode in Fink seems to have a problem figuring when the input ends or generating output forever.

I have recode installed using basic Fink commands. I think I have the basic Fink package installed without any weird stuff.

This seems to be Mac OS X -specific so it's more a Fink thing than recode (whoever currently is developing that) thing, so I am sending this e-mail to this address as displayed on the web at Fink's recode package page.

TEST CASE
---------

The simplest case that already fails is something like this:

echo "foobar" | recode -f mac..latin1 | less
echo "foobar" | recode mac..latin1 | less
echo "foobar" | recode -p mac..latin1 | less

echo "foobar" > file
recode -f mac..latin1 file
^C -- and there is a huge recNNNNN.tmp file with the same kind of broken output.

The output contains the real output and then what looks like dumped contents of the input buffer including uninitialized junk (or something like that) again and again, forever.

If I run "recode mac..latin1 < file.mac > file.iso" the output file grows without limit and seems to contain the last input block from the input file again and again at the end. Other data appears several times in the output file, too.

INFO
----

I have no recode-related environment variables set etc.

Recode seems to work OK on some linux boxes, so this seems to be a OS X / Fink -related problem.

This is rather annoying as character set conversions are very often necessary on Mac OS X.

COMPARISON WITH OTHER RECODE COMPILATIONS
-----------------------------------------

I tried to compile several versions of recode on several platforms. Here's the beef. On Mac Os X, the only version that worked right away was recode-3.4 (two versions old).

Mac OS X, plain recode-3.6 from ftp.gnu.org: compiled with:
cp /usr/share/libtool/{ltmain,config}.* .
./configure --prefix=/tmp --disable-nls
make
--> Has the same problem.

Linux (Redhat, x86), Plain recode-3.6: ./configure, make
--> works OK.

Mac OS X, plain recode-3.5 (note older version): compiled as above.
--> Fails with bus error when trying to convert data.

Mac OS X, plain recode-3.4 (even older version): just ./configure, make
--> Works OK

Something is really fishy with recode and OS X.

VERSION INFO
------------

-- fink packages --

x59% fink list recode
Reading package info...
Information about 925 packages read in 7 seconds.
i recode 3.6-6 Convert files between various character s...
recode-dev 3.6-6 Convert files between various character s...
i recode-shlibs 3.6-6 Convert files between various character s...

-- fink recode --

x59% which recode
/sw/bin/recode

x59% recode --version
Free recode 3.6
Written by Franc,ois Pinard <[EMAIL PROTECTED]>.

Copyright (C) 1990, 92, 93, 94, 96, 97, 99 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- mac os x --

Mac OS X: 10.2.3 Build 6G30 (Newest available via software update).

Developer tools should be up-to-date.

-- fink --

I just did fink selfupdate and fink update-all today before this so it should be up-to-date.

Yours,
Hannu
--
Hannu Aronsson <[EMAIL PROTECTED]> www.iki.fi/haa/


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to