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

Locale Problem in Compiled Ifcodegen on M1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.0 Beta2, 6.7.0 FF
    • 6.6.0 Beta1
    • Qt Interface Framework
    • None
    • Apple M1 Pro, macIS Vnetura 13
      System Integrity Protection On
      Qt installed by installer, using Qt 6.6.0 beta1
      using bundled Qt Creator
    • macOS
    • 4e1b3a26b (dev), af2a437dd (6.6)

    Description

      On Apple M1 Pro, macOS Ventura 13, the compiled ifcodegen run on an example in Qt Creator stops with an error in the click library complaining about unset UTF8 locale.

      Steps to reproduce:

      1. With the installer, install Qt 6.6.0 beta1 including Qt Interface Framework
      2. In Qt Creator, open qface-tutorial/ch3-simulation-backend
      3. Watch the cmake run breaking with

      -- Running ifcodegen for /Users/soheil/Qt/Examples/Qt-6.6.0/interfaceframework/qface-tutorial/ch3-simulation-backend/instrument-cluster.qface with template frontend
      ifcodegen call failed:
      /Users/soheil/Qt/6.6.0/macos/./libexec/ifcodegen -T /Users/soheil/Qt/6.6.0/android_arm64_v8a/./ifcodegen-templates --template=frontend --force /Users/soheil/Qt/Examples/Qt-6.6.0/interfaceframework/qface-tutorial/ch3-simulation-backend/instrument-cluster.qface /Users/soheil/repos/build-ch3-simulation-backend-Android_Qt_6_6_0_Clang_arm64_v8a-RelWithDebInfo/frontend/frontend
      Traceback (most recent call last):
        File "/Users/soheil/.cache/The\ Qt\ Company/ifcodegen/6.6.0.0/generate.py", line 215, in <module>
        File "/Users/soheil/.cache/The\ Qt\ Company/ifcodegen/6.6.0.0/click/core.py", line 1137, in _call_
        File "/Users/soheil/.cache/The\ Qt\ Company/ifcodegen/6.6.0.0/click/core.py", line 1043, in main
        File "/Users/soheil/.cache/The\ Qt\ Company/ifcodegen/6.6.0.0/click/_unicodefun.py", line 100, in _verify_python_env
      RuntimeError: Click will abort further execution because Python was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/unicode-support/ for mitigation steps.
       
      This system lists some UTF-8 supporting locales that you can pick from. The following suitable locales were discovered: af_ZA.UTF-8, am_ET.UTF-8, be_BY.UTF-8, bg_BG.UTF-8, ca_ES.UTF-8, cs_CZ.UTF-8, d
      ...

      See the rest in the attached logfile.

      Adding LANG=en_US.UTF-8 and LC_ALL=en_US.UTF-8 in the project's build environment helps. However, just setting these variables for the current user from .zprofile is not working as Creator gets a "system default" environment as the base.

      Attachments

        For Gerrit Dashboard: QTBUG-114686
        # Subject Branch Project Status CR V

        Activity

          People

            gagi Dominik Holland
            zogera Zoltán Gera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes