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

QLocale::monthName() doesn't work correctly on Windows

    XMLWordPrintable

Details

    • Windows
    • 5
    • fcd2a219c (dev), cbc3c6363 (6.7), 030fd4b2f (6.6), 60f069348 (tqtc/lts-6.5)
    • Foundations Sprint 99

    Description

      Running the attached program on Windows 11 with LANG=fr_CA produces

      "fr_CA" QLocale(French, Latin, Canada) "January"
      "fr_CA" QLocale(French, Latin, Canada) "janvier" 

      whereas on Linux the first line correctly says "janvier". I also tried it with WebAssembly and switched the language my browser is requesting to fr_CA and it produces the expected results like Linux. It occurs on both Qt 6.5 and 6.6.

       

      It is unclear why the default constructed QLocale doesn't work on Windows, since it reports the exact same name as is used to construct the other QLocale.

      Attachments

        1. locale.cc
          0.3 kB
          Jason Craig
        For Gerrit Dashboard: QTBUG-120961
        # Subject Branch Project Status CR V

        Activity

          People

            Eddy Edward Welbourne
            j.craig Jason Craig
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes