Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11350

QString::localeAwareCompare should use native comparison function on Symbian

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.7.0
    • None
    • 0e0e74f23566de7ae408a2e7091001941508b694

    Description

      Port QString::localeAwareCompare to use CompareC system function which has better handling of locales.

      Here is a proposed patch:

      //Include header:
      
      #if defined( Q_OS_SYMBIAN ) 
      #include <e32std.h> 
      #endif 
      
      //In localeAwareCompare_helper
      
      #if defined( Q_OS_SYMBIAN ) 
      TPtrC data1Ptr((const TUint16*)data1); 
      TPtrC data2Ptr((const TUint16*)data2); 
      return data1Ptr.CompareC(data2Ptr);  
      #endif 
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dzyubenk Denis Dzyubenko (Inactive)
            dzyubenk Denis Dzyubenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes