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

C Locale not the same as en_US

    XMLWordPrintable

Details

    • be99e778d361068e81936773def14c731553991f

    Description

      The documentation says "The "C" locale is identical in behavior to English/UnitedStates."

      This is trivially shown to not be the case:

      QLocale usLocale = QLocale(QLocale::English, QLocale::UnitedStates);
      QLocale cLocale = QLocale::c();

      QDate date(2010, 5, 9);

      qDebug() << usLocale.toString(date) << cLocale.toString(date);
      qDebug() << usLocale.toString(date, QLocale::ShortFormat) << cLocale.toString(date, QLocale::ShortFormat);

      ...

      QDEBUG : TestInternationalization::testDates(date-01) "Sunday, May 9, 2010" "Sunday, 9 May 2010"
      QDEBUG : TestInternationalization::testDates(date-01) "5/9/10" "9 May 2010"

      Attachments

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

        Activity

          People

            boddie David Boddie (Inactive)
            steveire Stephen Kelly (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes