Hi Felix,

Zhang Xiaofei schrieb:
Hi all,

Building the dbaccess module on simplified Chinese WinXP results in the following error:
----------------------------------------
g:/ooo_SRC680_latest\dbaccess\source\sdbtools\connection\objectnames.cxx(223) : error C2958: the left parenthesis '(' found at 'g:\ooo_src680_latest\dbaccess\so
urce\sdbtools\connection\objectnames.cxx(213)' was not matched correctly
dmake: Error code 2, while making '../../../wntmsci10.pro/slo/objectnames.obj'
----------------------------------------

As the correct form of the code can be seen at
http://lxr.go-oo.org/source/dba/dbaccess/source/sdbtools/connection/objectnames.cxx#213
like:
----------------------------------------
           if  (   ( _rName.indexOf( (sal_Unicode)34  ) >= 0 )  // "
               ||  ( _rName.indexOf( (sal_Unicode)39  ) >= 0 )  // '
               ||  ( _rName.indexOf( (sal_Unicode)96  ) >= 0 )  // `
               ||  ( _rName.indexOf( (sal_Unicode)145 ) >= 0 )  // ‘
               ||  ( _rName.indexOf( (sal_Unicode)146 ) >= 0 )  // ’
               ||  ( _rName.indexOf( (sal_Unicode)180 ) >= 0 )  // ´
               )
----------------------------------------
In my MS VS2003 It is displayed as the following form:
----------------------------------------
           if  (   ( _rName.indexOf( (sal_Unicode)34  ) >= 0 )  // "
               ||  ( _rName.indexOf( (sal_Unicode)39  ) >= 0 )  // '
               ||  ( _rName.indexOf( (sal_Unicode)96  ) >= 0 )  // `
|| ( _rName.indexOf( (sal_Unicode)145 ) >= 0 ) // ? || ( _rName.indexOf( (sal_Unicode)146 ) >= 0 ) // ? || ( _rName.indexOf( (sal_Unicode)180 ) >= 0 ) // ? )
               return ErrorCondition::DB_QUERY_NAME_WITH_QUOTES;
----------------------------------------

It seems the last two conditions and the parenthesis is mistakenly interpreted as a part of the comment, due to some encoding problem. Here in Beijing it is a very old problem in dozens of milestones AFAIR, and we always add linebreaks manually to fix it. But I think it's better to have it reported and fixed in the official source.
Thanks for reporting this. Do you have a fix for it? May be it is possible to insert /// slashes instead of two or we have to remove the comment and replace it with words. Could you please test which may work on your side?
Thanks.

Best regards,

Ocke

Thanks and Best Regards, :-)
Felix.










------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Ocke Janssen                      Tel: +49 40 23646 661, x66661
Dipl. Inf(FH)                     Fax: +49 40 23646 550
Sun Microsystems Inc.
Nagelsweg 55                     mailto:[EMAIL PROTECTED]
D-20097 Hamburg                   http://www.sun.com/staroffice

Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to