[libxml-devel] problem with xmlNewCharEncodingHandler

2009-01-08 Thread vincent.jiang
I want to extern libxml encoding to GB2312 on linux.
I found it that %outlen is just 45 and %inlen is 653 passed by
xmlCharEncodingInputFunc(unsigned char * out, int * outlen, const
unsigned char * in, int * inlen)
 when I use iconv to convert GB2312 to UTF-8.
And iconv returned -1.
Is %outlen should larger than %inlen?
How should I do?
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


Re: [libxml-devel] Namespace issue with validate_schema?

2009-01-08 Thread Jonathan Bartels

> Yeah, that sure is interesting. My first thought is if libxml-ruby is
> using the same version of libmxl that xmllint is using?  Is this on
> Windows, Linux, OS X or some other OS?

This is on Ubuntu 8.04, dpkg reports the following for libxml:
libxml1 1:1.8.17-14.1
libxml2 2.6.31.dfsg-2ubuntu1.3

> I see the xml you are validating, but can you provide the schema?  Mind
> submitting a bug report at ruby forge?

Legally, I cannot submit the schema. It is the ASTM CCR standard
(E2369–05). Access is fee based and the schema is not redistributable.
I may be able to post snippets as part of debugging things.

> http://rubyforge.org/tracker/?group_id=494

I'll file a bug report later today and follow it. Given that I can't
submit the schema I'll attempt to do some debugging/testing/patching
myself. Ideally I'd be able to reproduce it with a much simpler use
case than this particular XML standard.
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


Re: [libxml-devel] problem with xmlNewCharEncodingHandler

2009-01-08 Thread Charlie Savage



I want to extern libxml encoding to GB2312 on linux.
I found it that %outlen is just 45 and %inlen is 653 passed by
xmlCharEncodingInputFunc(unsigned char * out, int * outlen, const
unsigned char * in, int * inlen)
 when I use iconv to convert GB2312 to UTF-8.
And iconv returned -1.
Is %outlen should larger than %inlen?
How should I do?


Can you run the same test using just libxml itself?

Charlie


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel