You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Jason Stewart <ja...@gmail.com> on 2006/08/23 13:28:14 UTC

SVN compile gives chinese messages?

Hey All,

In preparation for releasing 3.0 I've been doing a bunch of work on Xerces-P.

Since it has been a while since I updated, I went ahead and did an svn
update, and recompiled.

Now when I try to run DOMCount I get:

l$ ../../samples/DOMCount ../../samples/data/personal.xml

Fatal Error at file , line 0, char 0
  Message: 䄀渀 攀砀挀攀瀀琀椀漀渀 漀挀挀甀爀爀攀搀℀ 吀礀瀀攀㨀刀甀渀琀椀洀攀䔀 砀挀攀瀀琀椀漀渀Ⰰ 䴀攀猀猀愀最攀㨀吀栀攀
瀀爀椀洀愀爀礀 搀漀挀甀洀攀渀琀 攀渀琀 椀琀礀 挀漀甀氀搀 渀漀琀 戀攀 漀瀀攀渀攀搀⸀
䤀搀㴀/home/jasons/work/xerces-c/swig/perl⼀../../samples/data/personal.xml

Errors occurred, no output available

Something broke somewhere - but I have no idea what.

Why are my messages in chinese suddenly? Why does any parse fail at
line 0 char 0 suddenly?

Thanks ahead of time, jas.

Re: SVN compile gives chinese messages?

Posted by Alberto Massari <am...@datadirect.com>.
Hi Jason,

At 15.46 24/08/2006 +0530, Jason Stewart wrote:
>Hi Alberto,
>
>On 8/24/06, Alberto Massari <am...@datadirect.com> wrote:
>
>>I just regenerated the SWIG interface, and "make
>>test" works as expected (on Ubuntu 6.06); but I
>>guess you already regenerate them... what platform are you on?
>
>I'm on Ubuntu 6.06 ;-)
>
>This isn't a Xerces-P problem - it happens when I try the Xerces-C
>sample apps. I did a make clean && make of xerces-c again and got the
>same problem.
>
>I'm really stuck on this one - I don't know what I could have changed
>- I did a straight ./configure && make with no special options, and
>suddenly everything broke.

Can you paste the config.h file that ./configure generated?

Thanks,
Alberto 


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: SVN compile gives chinese messages?

Posted by Jason Stewart <ja...@gmail.com>.
Hey Alby,

On 8/25/06, Alberto Massari <am...@datadirect.com> wrote:

> >On 8/24/06, David Cargill <ca...@ca.ibm.com> wrote:
> My doubts come from this encoding table in the IconvGNUTransService.cpp:
>
> static const IconvGNUEncoding    gIconvGNUEncodings[] = {
>      { "UCS-2LE",        2,    LITTLE_ENDIAN },
>      { "ucs-2-internal",        2,    LITTLE_ENDIAN },
>      { NULL, 0,    0 }
> };
>
> The last entry is LITTLE_ENDIAN, but the description for the field is
>
>      unsigned int fUBO;        // byte order, relative to the host
>
> Being "relative to the host", I think it should be BYTE_ORDER. But
> it's just a guess, as I haven't tested on a big-endian machine (yet,
> I could be able to do that today).

ok, I changed the entry for ucs-2-internal to BYTE_ORDER instead of
LITTLE_ENDIAN but sadly the results were still the same...

Cheers, jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: SVN compile gives chinese messages?

Posted by Alberto Massari <am...@datadirect.com>.
Hi Jason,

At 11.23 25/08/2006 +0530, Jason Stewart wrote:
>Hi David,
>
>On 8/24/06, David Cargill <ca...@ca.ibm.com> wrote:
>>Hi Jason,
>>I ran into a problem on some Linux platforms where the build defaulted to
>>using the GUNIconv transcoder.  I updated packageBinaries.pl to specify
>>--enable-transcoder-iconv and that fixed the problem.  Maybe try specifying
>>--enable-transcoder-iconv and see if that works.
>
>I looked at the Iconv transcoder code - and it indicated that it
>didn't provide a *real* transcoding service the comment in the code
>says:
>
>  This is a minimalist transcoding service, that only supports a local
>  default transcoder. All named encodings return zero as a failure...
>
>That won't work for Perl - I need a UTF-8 transcoder...
>
>Alby - what is the big-endian problem in IconvGNU? If I could I would
>put my machine on the 'net and let you play with it - but I'm behind a
>firewall here...

My doubts come from this encoding table in the IconvGNUTransService.cpp:

static const IconvGNUEncoding    gIconvGNUEncodings[] = {
     { "UCS-2LE",        2,    LITTLE_ENDIAN },
     { "ucs-2-internal",        2,    LITTLE_ENDIAN },
     { NULL, 0,    0 }
};

The last entry is LITTLE_ENDIAN, but the description for the field is

     unsigned int fUBO;        // byte order, relative to the host

Being "relative to the host", I think it should be BYTE_ORDER. But 
it's just a guess, as I haven't tested on a big-endian machine (yet, 
I could be able to do that today).

If you have time to test it now, let me know if this works.

Thanks,
Alberto 


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: SVN compile gives chinese messages?

Posted by Jason Stewart <ja...@gmail.com>.
Hi David,

On 8/24/06, David Cargill <ca...@ca.ibm.com> wrote:
> Hi Jason,
> I ran into a problem on some Linux platforms where the build defaulted to
> using the GUNIconv transcoder.  I updated packageBinaries.pl to specify
> --enable-transcoder-iconv and that fixed the problem.  Maybe try specifying
> --enable-transcoder-iconv and see if that works.
>

I looked at the Iconv transcoder code - and it indicated that it
didn't provide a *real* transcoding service the comment in the code
says:

  This is a minimalist transcoding service, that only supports a local
  default transcoder. All named encodings return zero as a failure...

That won't work for Perl - I need a UTF-8 transcoder...

Alby - what is the big-endian problem in IconvGNU? If I could I would
put my machine on the 'net and let you play with it - but I'm behind a
firewall here...

Cheers, jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: SVN compile gives chinese messages?

Posted by Jason Stewart <ja...@gmail.com>.
Hey David,

On 8/24/06, David Cargill <ca...@ca.ibm.com> wrote:
> Hi Jason,
> I ran into a problem on some Linux platforms where the build defaulted to
> using the GUNIconv transcoder.  I updated packageBinaries.pl to specify
> --enable-transcoder-iconv and that fixed the problem.  Maybe try specifying
> --enable-transcoder-iconv and see if that works.
>

Yes!!

I was getting desperate so I went ahead and tried this, and sure
enough  it did the trick! __AND__ all the Xerces transcoding from
UTF-16 <-> UTF-8 worked perfect as well... So I don't know what the
comment in the code about being a *minimal* transcoder is about.

Now everything is working again.

I'm busy adding more tests for the new DOM level3 additions.

Cheers, jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: SVN compile gives chinese messages?

Posted by David Cargill <ca...@ca.ibm.com>.
Hi Jason,
I ran into a problem on some Linux platforms where the build defaulted to
using the GUNIconv transcoder.  I updated packageBinaries.pl to specify
--enable-transcoder-iconv and that fixed the problem.  Maybe try specifying
--enable-transcoder-iconv and see if that works.

Regards,
David A. Cargill
XML Parser Development
IBM Toronto Lab
(905) 413-2371, tie 969
cargilld@ca.ibm.com


                                                                           
             "Jason Stewart"                                               
             <jason.e.stewart@                                             
             gmail.com>                                                 To 
                                       c-dev@xerces.apache.org             
             08/24/2006 06:16                                           cc 
             AM                                                            
                                                                   Subject 
                                       Re: SVN compile gives chinese       
             Please respond to         messages?                           
             c-dev@xerces.apac                                             
                  he.org                                                   
                                                                           
                                                                           
                                                                           
                                                                           




Hi Alberto,

On 8/24/06, Alberto Massari <am...@datadirect.com> wrote:

> I just regenerated the SWIG interface, and "make
> test" works as expected (on Ubuntu 6.06); but I
> guess you already regenerate them... what platform are you on?

I'm on Ubuntu 6.06 ;-)

This isn't a Xerces-P problem - it happens when I try the Xerces-C
sample apps. I did a make clean && make of xerces-c again and got the
same problem.

I'm really stuck on this one - I don't know what I could have changed
- I did a straight ./configure && make with no special options, and
suddenly everything broke.

Cheers, jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: SVN compile gives chinese messages?

Posted by Jason Stewart <ja...@gmail.com>.
Hi Alberto,

On 8/24/06, Alberto Massari <am...@datadirect.com> wrote:

> I just regenerated the SWIG interface, and "make
> test" works as expected (on Ubuntu 6.06); but I
> guess you already regenerate them... what platform are you on?

I'm on Ubuntu 6.06 ;-)

This isn't a Xerces-P problem - it happens when I try the Xerces-C
sample apps. I did a make clean && make of xerces-c again and got the
same problem.

I'm really stuck on this one - I don't know what I could have changed
- I did a straight ./configure && make with no special options, and
suddenly everything broke.

Cheers, jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: SVN compile gives chinese messages?

Posted by Alberto Massari <am...@datadirect.com>.
At 16.58 23/08/2006 +0530, Jason Stewart wrote:
>Hey All, In preparation for releasing 3.0 I've 
>been doing a bunch of work on Xerces-P. Since it 
>has been a while since I updated, I went ahead 
>and did an svn update, and recompiled. Now when 
>I try to run DOMCount I get: l$ 
>../../samples/DOMCount 
>../../samples/data/personal.xml Fatal Error at 
>file , line 0, char 0   Message: 䄀渀 攀ç 
>€æŒ€æ”€ç€€ç€æ¤€æ¼€æ¸€â€€æ¼€æŒ€æŒ€ç”€çˆ€çˆ€æ”€æ€â„€â€€å€ç¤€ç€€æ”€ã¨€åˆ€ç”€æ¸€ç€æ¤€æ´€æ”€ä”€ 
>ç 
>€æŒ€æ”€ç€€ç€æ¤€æ¼€æ¸€â°€â€€ä´€æ”€çŒ€çŒ€æ„€æœ€æ”€ã¨€å€æ 
>€æ”€ 
>瀀爀椀洀愀爀礀 搀漀挀甀洀攀渀琀 攀渀琀 
>椀琀礀 挀漀甀氀搀 渀漀琀 戀攀 漀瀀攀渀攀搀⸀ 
>䤀搀㴀/home/jasons/work/xerces-c/swig/perl⼀../../samples/data/personal.xml 
>Errors occurred, no output available Something 
>broke somewhere - but I have no idea what. Why 
>are my messages in chinese suddenly? Why does 
>any parse fail at line 0 char 0 suddenly? Thanks 
>ahead of time, jas. </x-flowed>

Hi Jason,
I just regenerated the SWIG interface, and "make 
test" works as expected (on Ubuntu 6.06); but I 
guess you already regenerate them... what platform are you on?

Alberto 


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org