From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id DCDC21FF17C for ; Wed, 23 Jul 2025 11:05:37 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 35832BE58; Wed, 23 Jul 2025 11:06:55 +0200 (CEST) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Date: Wed, 23 Jul 2025 11:06:45 +0200 Message-ID: <20250723090652.172248-1-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1753261602110 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.096 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH proxmox-i18n] makefile: Set locale for sort X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" This should make it so that the output from `make update` is stable across different machines. >From sort(1): *** WARNING *** The locale specified by the environment affects sort order. Set LC_ALL=C to get the traditional sort order that uses native byte values. LC_COLLATE is a version of LC_ALL which only affects collation. Signed-off-by: Maximiliano Sandoval --- With this patch: $ make update && git diff --stat ... 36 files changed, 21133 insertions(+), 17192 deletions(-) Before: $ make update && git diff --stat ... 37 files changed, 13049 insertions(+), 8773 deletions(-) The last `make update` was run with the en_US.UTF-8 locale, hence switching to the C locale creates a bigger diff. Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 34859f5..731fa6e 100644 --- a/Makefile +++ b/Makefile @@ -103,7 +103,7 @@ pbs-lang-%.js: %.po # parameter 1 is the name # parameter 2 is the directory define potupdate - find . -name "*.js" -path "./$(2)*" | sort | xargs xgettext \ + find . -name "*.js" -path "./$(2)*" | LC_COLLATE=C sort | xargs xgettext \ --sort-output \ --add-comments="TRANSLATORS" \ --from-code="UTF-8" \ -- 2.47.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel