Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1q4ctN-0006Kz-7P for mharc-grub-devel@gnu.org; Thu, 01 Jun 2023 03:38:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4ctL-0006Ka-9o for grub-devel@gnu.org; Thu, 01 Jun 2023 03:38:39 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4ctJ-0000MM-DX for grub-devel@gnu.org; Thu, 01 Jun 2023 03:38:38 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-97448470403so54620866b.1 for ; Thu, 01 Jun 2023 00:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685605108; x=1688197108; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/eI8qaf3fhlX928oi3azuofJEz8rzfEaP/8PdlG7fXg=; b=rau1Bi7rYCwHQDcP7X/LrkSMJz4nj2Z58zDnxGsap4IWARLilQe+BrTLspBLAoiUJn +9pHGUbjNOZ+plt3qMds2jbiPyDBTVLHHWGAGb26qfdaunqbBKry+V71tA4bR8vZ3Xpi DLXOH2a21AJYEMeAeDP/EkNLXibLeMjtelt7lfbuJcX8WviUqxz7K6lglYcS53//JS/i Mq20AqsAQSzstubZVZ8SiX5F3U+WCHtRPc8rYv/Hg3+TTR6V+qf8BDVWvD8qdu0wynUf 9ipM4WqTWwYFzksY05DtQ2TFe3iIU0YTY9iS0dgjEhpxJHFVl7xAv7Lw+5hsi1Sqn6c7 SmGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685605108; x=1688197108; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/eI8qaf3fhlX928oi3azuofJEz8rzfEaP/8PdlG7fXg=; b=Uwidpq5Zkep9EgqLU8vXs7OWLwPuEZVx07OvcrwOzrj4pI/8PF+eTl6c2Q1xIm5cMF beCx1/DXAZmNm+BptwY0CHY4dXMwfzpdBsd3qzB3TYpOdQ72B7xjG6wBS3/u1i/OxR8v Szeigg6vrdfWpoiOZtE/96a7j3Q/ZrY6AHGCCBFKKnGtfpcYy/uvX1NSoxlRRzSQJsj/ kAuU6iiEhQT5yBXGMfUYJ1OguFodwCVxXTGXK8Lc6uR7uCh5sIiPVUCFxURvU05ZwdmV 9VFXsd0y1Neh8zazRJb7O3qO27laxL3+bNhzis4qB8MfN6O3wb+gRhKKgbTdokji6TSw E8YQ== X-Gm-Message-State: AC+VfDxEHEdEjrh7OsouFmxUCY8wnKBLsamtWufTRh6sz6I0O0DOJRjk IRBnJDNm1EgS0piSwoUunBGgOY308YOd3A== X-Google-Smtp-Source: ACHHUZ6HlYBeXOiL0F6RyuxL2S2v7sJS+sbScEy8p+9Zr+Y7LgaKVWyYhyjDVpsFdRnbVYmmA8npbA== X-Received: by 2002:a17:906:4fc3:b0:974:2169:5f81 with SMTP id i3-20020a1709064fc300b0097421695f81mr8222362ejw.22.1685605108409; Thu, 01 Jun 2023 00:38:28 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id m13-20020a170906160d00b0095342bfb701sm10340175ejd.16.2023.06.01.00.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 00:38:28 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: grub-devel@gnu.org Cc: Alexander Kanavin Subject: [PATCH 3/3] util/import_unicode.py: ensure output is deterministic Date: Thu, 1 Jun 2023 09:38:20 +0200 Message-Id: <20230601073820.307470-3-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230601073820.307470-1-alex@linutronix.de> References: <20230601073820.307470-1-alex@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=alex.kanavin@gmail.com; helo=mail-ej1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2023 07:38:39 -0000 Ensure the generated unidata.c file is deterministic by sorting the keys of the dict. Signed-off-by: Alexander Kanavin --- util/import_unicode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/import_unicode.py b/util/import_unicode.py index 08f80591e..1f434a069 100644 --- a/util/import_unicode.py +++ b/util/import_unicode.py @@ -174,7 +174,7 @@ infile.close () outfile.write ("struct grub_unicode_arabic_shape grub_unicode_arabic_shapes[] = {\n ") -for x in arabicsubst: +for x in sorted(arabicsubst): try: if arabicsubst[x]['join'] == "DUAL": outfile.write ("{0x%x, 0x%x, 0x%x, 0x%x, 0x%x},\n " % (arabicsubst[x][0], arabicsubst[x][1], arabicsubst[x][2], arabicsubst[x][3], arabicsubst[x][4])) -- 2.30.2