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 and Best Regards, :-)
Felix.










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

Reply via email to