From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 07 Oct 2025 15:51:56 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f62.google.com (mail-ed1-f62.google.com [209.85.208.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 597Dpt73002039 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 7 Oct 2025 15:51:55 +0200 Received: by mail-ed1-f62.google.com with SMTP id 4fb4d7f45d1cf-6341958f08fsf5256619a12.0 for ; Tue, 07 Oct 2025 06:51:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1759845110; cv=pass; d=google.com; s=arc-20240605; b=MfbT+NzGdWAl6BhoxxeRwBWtakVAa+uPx1gaKeOuc5fzsxG4gT2uTlHtlkJ0CZhxsl mzV0SBAiR6J3RT/U8oRLD6i6Tyl36DxM14nsgHgw0HhLttKUCZR/tfdf2YWpDFq+8fte wT/g0Eq/iybFz50fRtNARC8xHNdHmKtADzdzDEDnWbSR0tTKh2vgDEbV0kTB2BuCBrDx YaeM8J0Vs0VmgqLkBjGdjRJfSJ3kkCdkd8qeAVCSMG/esIbowYMwh+IJsqB58FAimazi 05XGiQOV7G/UhGKss9M83/61sUQfyaYp1qvRhBNJ5E96a1qxCahmxFoKYqdKYwv455Zf BwdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=DG0Kp91xxu9HI+bJko+yhcyIfnJanHBQdatoXgzqczk=; fh=+cU1Y4YnmfcVD3bCRr5I/pg5415JHqnn7Q3XLfhvOSU=; b=UYIjKR93xY5iq/9nxMBhiZS5x9nhzr0m8uSf8JegecTOyFmOU6791z1k/rOuRwtrQx zVoy3uz0gzDn4Jj4MrfK6wQAnwIaMYyhEx/o/Xly3zaeIgrrcWF42yqFIjMR5kLLa2X7 bVGPXdBcOs4mFK97ndI5A5CS+/ElJxySJCtZaSkydoxGpBC3fyEOTQZGcaEmSFUAqYaz pGqAe9X5d92Xdl8HBOOTF78oqvqo6ZlIBA6jyUhJzVvEYVaFcefNKWGFxr9kbSwTBlFW ZZcjsRj13O9hzMmVeNivB0Skxm3jFfjLM1ARmU0UijhQDl5VwxbQ/gF17FmNtdpl0gx2 GsmA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1759845110; x=1760449910; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:in-reply-to:from:content-language:references:to :subject:user-agent:mime-version:date:message-id:sender:from:to:cc :subject:date:message-id:reply-to; bh=DG0Kp91xxu9HI+bJko+yhcyIfnJanHBQdatoXgzqczk=; b=hsj4awHXa0oxPvRZVqabsibS6AzzChfk5AhNp1eHRq8zAfL6mCuAtxHjv5Ev606vEM aZHz9RTP0RJykTN2uu8I/bv/DGfPFGcjw5oEQC8iIBlH+85E3Qxw3yTcmAiActpBVump SsX2a0OADIJ/+AsOnUtp7R10rI9t9B+WQglZLYMh0ljdlkAnSdDXhaKX7Nbnjw9hDXRt NolAnzbTg6mGELcUR0SZWfub8q7JYcX1fHEdwddJqrlvyGT0AgNfsKqCLnbz/rmGIawu gsjvES3VNxlOsw3bRc2OFML5seRrq1l8CNwsQno0UoYHnst1ORp+70b7V8BsmNGmp+W5 6LxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759845110; x=1760449910; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:in-reply-to :from:content-language:references:to:subject:user-agent:mime-version :date:message-id:x-beenthere:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=DG0Kp91xxu9HI+bJko+yhcyIfnJanHBQdatoXgzqczk=; b=Bikvy8j9aX7I7Vi8faZPjHKvO919VzkwCqulXb+6L5rFb5WOF3gA9pa3x2u3wmesxt avCJUVXDS1G5W7dGo2KbNJU6n0nszWLM268WOwEEBeUpRiCKjYjv5Q0jTsaOiNH51lfr k2bcTmgOWJu7altaFW+RA4IhRFIILLxMsxEiEluNzjXVZLzoVVEWw4/mHImN8thHhPX+ YHUEwRH7BzX1T3TVHWvZWV8wsZ7JQZIC3xb78pBQwbJPtutklwf+f1Fh5ceew3rWdCah dWwZBTWniBZMVpP+ecDWZPg3PvV6JSaWFJo5lcm9tdXl5FR2AOyDxlJDowDM34B6hymh yqUA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCURYW8fQILIpO9nkZro6lK7QZu7nrV5pACqql7APO8DhRFHI52aHocOXSSfJeaLa7tyFxk1@ilbers.de X-Gm-Message-State: AOJu0Ywc3VsYbgmtd0ZXlKT2lfSLPeOo5+BGLqLN/5m4HDrCHMBtuB1g mGzXBDWCN6CtAN2UbOM05jeFQHoXtpM1CnFhsxfWpdxB8pGfFwxlo4Kl X-Google-Smtp-Source: AGHT+IElKZ2yCLYNjxSN6hMcJRMjd8pPPjknUSZqlNG5xyUiVc82TGnpKbC5soXhsGHNxtyy3ou+8g== X-Received: by 2002:a05:6402:4402:b0:638:d4bb:6c80 with SMTP id 4fb4d7f45d1cf-63939c2bba3mr16253813a12.36.1759845110030; Tue, 07 Oct 2025 06:51:50 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ARHlJd7tkea6tj9StqXnbgdBgnEv5nj6nhEAxQ8IuA2DN6q3tw==" Received: by 2002:a50:999e:0:b0:634:c2a7:e3b3 with SMTP id 4fb4d7f45d1cf-6396ed19ed4ls3325467a12.1.-pod-prod-07-eu; Tue, 07 Oct 2025 06:51:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUOvzXsIH6RZzNDmLlRBgv8Y9SPCkwupxUTNAjoAfo22xu8WJR+1GB65YaFKKnG0Hyxxjo5YhNNyCeO@googlegroups.com X-Received: by 2002:a05:6402:278c:b0:638:b0d0:2e95 with SMTP id 4fb4d7f45d1cf-63939c26c3emr17230332a12.31.1759845107187; Tue, 07 Oct 2025 06:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1759845107; cv=none; d=google.com; s=arc-20240605; b=W+ztSIiSgKofaZTnYREujSYe10aaFCbDrtgRfrmENG7U96DN808+yWcRL1n/mJ2xm/ MyoLju6hz5ehKRwCGLM7QFy+t+5J0aFELk1bULGkHMG1ZOK+PaWLzLIGYkzNWCr28IfA e6bcxj+BJrpvZA9ESH/DdBD20CEG4LbDutys/IZpKevgHjqp84liFYmv+aIhzOJ56AqL TCxl28B10nvUuuilHvbLqw+rfhXpJTZWGm1RSXzkX1QpEk2GBLfEkG82av9MNfYNEwXm ITDNwKn8HvS96Wf4KMu1urP3gSPkKPNH6MkuVMlBdFus9Rq3lAtjvcrDslzKzPX56QjP kl4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id; bh=TV9jqL4jLdoMmtbcD/CN/vs0A99ZUGxgnK2bsDnVx/M=; fh=9U3iziCyS109J8WYl3BKDhY6B99Vpv8C+b1nKwKdPFc=; b=YB3Yz69yTlXMd3oolEhntaHwDWzHMExArKs4Xf0PuD4y7E+EkspBE0M3qrBoUmI1xO nhuAtEvx5HnsDATntSE+72mgdWlpYFkWx+vwVldff0CBGuTWGC839XomcMOoXmFfrMuv pK4jwgTfL9s5VlkKMlgCC+LBpWwFoqr+4Vf2+/ploXzwGOlSPdE9N+UAFmlJn5pTL8eF LSWCPDkTFBgaR5vmQJyuDTSRRDf8tvpWGe/lR/ZrAMYvOHuM0D3aF0zQlK+sBH23YjRi nfbJmc/eC1xmV5UyvdGt7zG1dZS+jVigiBt+8fu3VbB5a+9//xvaCnNRJO+yb5EnzPDt Q5xg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 4fb4d7f45d1cf-6393b6aee00si28916a12.1.2025.10.07.06.51.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Oct 2025 06:51:47 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.117] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 597DpjHF002026 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 7 Oct 2025 15:51:46 +0200 Message-ID: <0aee8d5f-6e7e-4267-a43c-e500e2ee3527@ilbers.de> Date: Tue, 7 Oct 2025 15:51:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] rootfs: use LOCALE_DEFAULT with default "C" for locale exports To: Badrikesh Prusty , isar-users@googlegroups.com References: <20250910092250.179144-1-badrikesh.prusty@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <20250910092250.179144-1-badrikesh.prusty@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: uQQBR89FxLH4 Applied to next, thanks. On 9/10/25 11:22, 'Badrikesh Prusty' via isar-users wrote: > Some packages, such as console-setup, fail to set a valid CHARMAP according > to the locale. For example, image-locales-extension.bbclass sets the default > locale to "en_US.UTF-8". > > However, rootfs.bbclass was exporting hardcoded locale values as "C". > Because of this, when console-setup is installed in non-interactive mode > during image creation, it sets the CHARMAP based on the "C" locale, causing > a configuration mismatch. > > Set LOCALE_DEFAULT to "C" by default in rootfs.bbclass so it can be overridden > by image-locales-extension.bbclass with "en_US.UTF-8", enabling proper CHARMAP > setup in console-setup. > > Signed-off-by: Badrikesh Prusty > --- > RECIPE-API-CHANGELOG.md | 20 ++++++++++++++++++++ > meta/classes/rootfs.bbclass | 7 ++++--- > 2 files changed, 24 insertions(+), 3 deletions(-) > > diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md > index 8468717d..c6b5a997 100644 > --- a/RECIPE-API-CHANGELOG.md > +++ b/RECIPE-API-CHANGELOG.md > @@ -727,3 +727,23 @@ Changes in next > > This was never documented and never had practical relevance. `oci-archive` is > the useful OCI image format that can be imported, e.g., by podman. > + > +### Configure Locale Exports Using LOCALE_DEFAULT > + > +The LOCALE_DEFAULT variable is now used to export LANG, LANGUAGE, and LC_ALL > +in the rootfs.bbclass, replacing the previous hardcoded "C" values. It is > +weakly assigned a default value of "C". This value can be overridden by image > +recipes via the image-locales-extension class (inherited by the image class), > +for example, to set it to "en_US.UTF-8". > + > +This enables configuring the default locale and keyboard layout at build time. > +Additionally, if console-setup is installed in the rootfs during the build, it > +will be configured based on the locale exports. > + > +To set a locale other than "C" or "en_US.UTF-8" (generated by default), define > +the following variables in your image recipe. For example, to use German, add: > + > +``` > +LOCALE_GEN = "de_DE.UTF-8 UTF-8\n" > +LOCALE_DEFAULT = "de_DE.UTF-8" > +``` > diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass > index 7b7859b9..9eb09012 100644 > --- a/meta/classes/rootfs.bbclass > +++ b/meta/classes/rootfs.bbclass > @@ -30,9 +30,10 @@ ROOTFS_STUBS_DIR = "/usr/local/isar-sbin" > export E = "${@ isar_export_proxies(d)}" > export DEBIAN_FRONTEND = "noninteractive" > # To avoid Perl locale warnings: > -export LANG = "C" > -export LANGUAGE = "C" > -export LC_ALL = "C" > +LOCALE_DEFAULT ??= "C" > +export LANG = "${LOCALE_DEFAULT}" > +export LANGUAGE = "${LOCALE_DEFAULT}" > +export LC_ALL = "${LOCALE_DEFAULT}" > > rootfs_do_mounts[weight] = "3" > rootfs_do_mounts() { -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/0aee8d5f-6e7e-4267-a43c-e500e2ee3527%40ilbers.de.