Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28864

Detected system locale encoding (ANSI_X3.4-1968, locale "") is not UTF-8

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • Qt Creator 9.0.0
    • All Other Issues
    • None
    • Linux/Wayland

    Description

      Running a minimal program in Qt Creator reveals:

      Detected system locale encoding (ANSI_X3.4-1968, locale "") is not UTF-8.
      Qt shall use a UTF-8 locale ("C.UTF-8") instead. If this causes problems,
      reconfigure your locale. See the locale(1) manual for more information.

      Setting LC_ALL in Qt Creators Run environment for the project makes it disappear.

      Running the same program (built with Qt Creator) directly from the console works without this message. The behaviour is new starting with 9.0.x, never seen these messages before.

      $ locale
      LANG=C.UTF-8
      LC_CTYPE="C.UTF-8"
      LC_NUMERIC="C.UTF-8"
      LC_TIME="C.UTF-8"
      LC_COLLATE="C.UTF-8"
      LC_MONETARY="C.UTF-8"
      LC_MESSAGES="C.UTF-8"
      LC_PAPER="C.UTF-8"
      LC_NAME="C.UTF-8"
      LC_ADDRESS="C.UTF-8"
      LC_TELEPHONE="C.UTF-8"
      LC_MEASUREMENT="C.UTF-8"
      LC_IDENTIFICATION="C.UTF-8"
      LC_ALL=
      

      Stock Fedora 37. LC_ALL is not set.

      Attachments

        Issue Links

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

          Activity

            People

              con Eike Ziller
              cajus Cajus Pollmeier
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes