Bug 1218462 - RPM: qt6/uic prints warning about locale while building KDE packages locally
Summary: RPM: qt6/uic prints warning about locale while building KDE packages locally
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-Mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-31 14:42 UTC by Ahmad Samir
Modified: 2024-01-08 13:29 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Samir 2023-12-31 14:42:26 UTC
Building KDE RPMs locally, any package that runs /usr/libexec/qt6/uic, e.g. kate, I see:

Detected locale "LC_CTYPE=C;LC_NUMERIC=en_AU.UTF-8;LC_TIME=en_AU.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=C.UTF-8;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C.UTF-8;LC_IDENTIFICATION=C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.

This seems to be caused by /usr/lib/rpm/macros, which has:
LANG=C \
export LANG \

replacing C with C.utf8 solves the issue.

(Sorry if this should have been filed against RPM upstream.)
Comment 1 Fabian Vogt 2024-01-08 13:23:06 UTC
Looks like the switch to C.UTF-8 is part of RPM 4.19 already, which is OTW to TW: https://github.com/rpm-software-management/rpm/commit/3be76d71448279a29674cba753fc7ad811b7931c
Comment 2 Ahmad Samir 2024-01-08 13:29:52 UTC
Good news. Thanks!