[freetds] detecting iconv names

ZIGLIO Frediano Frediano.Ziglio at vodafoneomnitel.it
Fri May 2 09:04:12 EDT 2003


> 
> I'm doing some tests to test iconv.
> My intention is to convert some code and see results. Problem 
> is portability
> I tried this line
>   echo foo | iconv -f iso88591 -t ucs2 | perl -ne "print 
> unpack('H*',\$_);"
> on a HP/UX 10.20 and produce
>   0066006f006f000a
> (as expected, it's UCS-2 bigendian)
> Now, problem is perl. Does all system support perl?
> My intention is to put these tests in configure so it should 
> be portable. I don't know any command to return hexdump in a 
> portable way (ie hexdump is not present in HP/UX)...
> 

I have found these commands:
  od, sum, cksum.
Is cksum portable ?

freddy77



More information about the FreeTDS mailing list