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

QLocale doesn't align with C library functions to let us use them for system locale data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 4.5.1, 6.7
    • Core: Locales (i18n)
    • None
    • Any in which {{nl_langinfo()}} is considered the source of truth about user L10n; this may well include every system using {{glibc}}, the GNU C library.
    • Linux/Wayland, Linux/X11, Linux/Yocto, Linux/Other display system
    • 144

    Description

      As noted in QTBUG-122216 and discussed in this review, various C library functions – nl_langinfo(), strftime(), strfmon(), maybe others – provide access to locale-relevant data that the user may have configured. However, these do not align well with the CLDR data that QLocale otherwise uses, making it difficult to work out how to incorporate it into QSystemLocale without causing an "impedance mismatch" – most of the problems centre on "is that a short format or a long format ?"

      The bug mentioned above shows that (at least some) users expect QLocale::system() to agree with what the C library gives them; and the contribution whose review is linked above makes a reasonable attempt to square the circle, yet we do not have agreement on how to proceed.

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              Eddy Edward Welbourne
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change