[Bins] iconv issue with bins 1.1.27 on solaris 10

Bill Clarke llib at computer.org
Thu Jun 16 02:23:21 BST 2005

I've installed bins 1.1.27 on a solaris 10 box, with perl 5.8.2, and all
 required CPAN packages up to date.  I'm not sure what's going on, but I
suspect it's related to iconv.  I get the following warning and error:
$ bins -v 2 in photos
Parameterless "use IO" deprecated at
/usr/local/stow/perl-5.8.2/lib/site_perl/5.8.2/HTML/Clean.pm line 4
Unsupported conversion: Invalid argument at /usr/local/bin/bins line 372.

Ignoring the deprecation warning, which has been around for quite a
while now, the error is in the Text::Iconv->new.  The problem seems to
be the result of `locale charmap` which just produces the string "646",
which Iconv doesn't like.  If I comment out the call to `locale charmap`
and the following if-block then it works (it also runs a _hell_ of a lot
faster than it used to, before I upgraded from Solaris 9).

/lib BillClarke PostdoctoralFellow CompSci ANU cs.anu.edu.au/CC-NUMA
http://llib.cjb.net llib at computer.org  tel:+61-2-6125x5687 fax:x0010
PGPid:B381EE7DB7D3E58F17248C672E2DA124ADADF444 GNU unix LaTeX XPilot
Buffy DrWho Goodies StarTrek XFiles Origami SML SMP MPI mozilla tcsh
Asimov Bear Clarke Donaldson Volleyball Ultimate Cricket emacs C++ X
Jordan Kay Lackey Martin Stasheff DeepPurple H&C KLF Queen PinkFloyd

More information about the Bins mailing list