To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=86621
                 Issue #|86621
                 Summary|non-ASCII characters in objectnames.cxx
               Component|Database access
                 Version|DEV300m1
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|none
             Assigned to|oj
             Reported by|zhangxiaofei





------- Additional comments from [EMAIL PROTECTED] Mon Mar  3 06:58:51 +0000 
2008 -------
The definition of QueryValidityCheck::validateName_getErrorCondition() has the
following code:

           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 )  // ´
               ) 

The non-ASCII chars in the comment are incorrectly recognized in Simplified
Chinese WinXP as:

           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; 

and makes the compilation breaks with the following information:

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'

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to