From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: Static, pure Scheme internationalization Date: Sat, 21 Dec 2024 23:18:22 +0900 Message-ID: References: <8381a20ada723b92a0630ee395fa30ea17796465.camel@planete-kraus.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6400"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User To: Vivien Kraus Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Dec 21 15:19:05 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tP0Jt-0001WQ-M6 for guile-user@m.gmane-mx.org; Sat, 21 Dec 2024 15:19:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tP0JU-0002oB-Hb; Sat, 21 Dec 2024 09:18:40 -0500 Original-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 1tP0JS-0002nt-Ok for guile-user@gnu.org; Sat, 21 Dec 2024 09:18:38 -0500 Original-Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tP0JQ-00015P-He for guile-user@gnu.org; Sat, 21 Dec 2024 09:18:37 -0500 Original-Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2ee76befe58so2554665a91.2 for ; Sat, 21 Dec 2024 06:18:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734790715; x=1735395515; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kAuXagvc0I+pDdf/+0zTUadhqFq23CqMN5ZrQKICid0=; b=R4WyBGPp7EgvMhkrLBiR7jG3wQsjhpdxu0fcQXsVdibexnoM7cQeIqkjOq9CaA2bQE 1V1x8JCMqYGgbzXvv1t20b6L3fufpViEImyq+qt08VtVU0LpOB0mSLnTkQTGfAeiMKI/ Ymn9g7ujScPZ4br5wmonRByaZ4IPT6qnB3gzw/4EnVOvIJ+vpD30yOEnrFRmgM70nsJy SWX/tbPr/X69Sy2mPK0ZfAAMly/KHMoAVOxrixydFoSINWtZvYgDOxliGywhNJ6lQoL0 rlx42USZrtOsxpY3eEieIGyIatsCmH1ZciJE9w6qV6J6I9P4jydq2TwaIwuAqVLGeJF8 sHSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734790715; x=1735395515; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kAuXagvc0I+pDdf/+0zTUadhqFq23CqMN5ZrQKICid0=; b=odetxp9czTwdvzDzzn/SotrfxYGbcVjXrZIGxPNdB++NN1YaDuwvMcQKK4pNAcxAnj ZK2VxOPcwyIFD7s+I3+hIQfPsj6ri+u/q39YCk6cw7qSM46vwdmU3a3PpP2QcbSnwQvO YkCYwHpB+2q52+D+XCw8BkIZ1e8QV7MXc3tfn2NAuKoFuK5sCIM1YT0BQiUEKJy3jjud LBGxsCbcFUFUOjjM74yDjFZjNdvFAt/wkFVazcVy2xPwuJXSBPk5HRjhsERnQzNdN/Gy /8RiyqSfm4J6p5W36VhW2aYrUoFVaTqtZP2x4xus/E44kGYN6rZbH+BaN2nmADGKiTsT 5QTQ== X-Gm-Message-State: AOJu0YyWnIwJ7SxnCsFLe7jQn+OqUKwzAdl79jmROAQeouw6NtWiC47o fFBUbTtRsUcksdA+EayIComkF5ngFbhv8D/Ucy+oSlxQ0RqE2qGBTvopxideFYihAr9rnW7THvS NS4cB1+9+orXHI68ZCe7BtJJjah3nLm6j X-Gm-Gg: ASbGncshsW3lXxIafOpjOrcGIkGdES+Xyz9BPbuE6l6uvwdygGVNNopw5eBMCG5rm8P IDpRYrsPfrT6OgCoHnpySQCs/Qce8I4SKtsYNMnU= X-Google-Smtp-Source: AGHT+IH6rrCbOtspcpPiKZNSo+QRAsTIb7yR9vwMkF3laCFPICh0xzMbzBXv9boif06Prrg+LaQNVftxKheGbwqxg/I= X-Received: by 2002:a17:90b:270d:b0:2ee:6736:8512 with SMTP id 98e67ed59e1d1-2f452e1636emr12606488a91.12.1734790714678; Sat, 21 Dec 2024 06:18:34 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=nalaginrut@gmail.com; helo=mail-pj1-x102f.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:20028 Archived-At: If you're going to run it like any normal Guile program, it's better to use the "native-endianess" function of Guile to detect the endianness of the current platform, IIRC it's in (rnrs). On Sat, Dec 21, 2024 at 11:15=E2=80=AFPM Vivien Kraus wrote: > Le samedi 21 d=C3=A9cembre 2024 =C3=A0 21:36 +0900, Nala Ginrut a =C3=A9c= rit : > > If you want to base on Hoot, maybe it's OK to implement your own > > (current-endianess) as you showed. > > This will not run on Hoot, it only runs at expansion time. However, > from what I understand from the GNU MO file format specification, it > can be written either as big-endian or little-endian, I assume > depending on the machine used to produce the MO file. You can detect > which one it is by looking at the magic header in the file. > > Thank you for the bytevector-u32-ref suggestion! > > Vivien >