On Wed, Aug 10, 2005 at 02:11:45PM +0530, Sastry wrote: > On 8/9/05, Nicholas Clark <[EMAIL PROTECTED]> wrote: > > On Tue, Aug 09, 2005 at 10:58:48AM +0530, Sastry wrote:
> > > > $enc_string = encode("iso-8859-16", $string); > > So $enc_string should be a single byte, 97, everywhere. > Can you suggest some pointers in the code to fix this? No, not really. I think that the perl level sub encode() is implemented by Encode::XS::encode. I'd start by putting a gdb breakpoint on that (XS_Encode__XS_encode) and simply single stepping at a C level in from there to see where the code goes, and check that each step does what I'd expect. Nicholas Clark