Re: Encoding iso-8859-16

[email protected] (Nicholas Clark)
Newsgroups perl.unicode,perl.mvs,perl.perl5.porters,perl.beginners
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.