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: Sun, 22 Dec 2024 03:27:29 +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="26496"; 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 19:28:21 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 1tP4D7-0006kM-93 for guile-user@m.gmane-mx.org; Sat, 21 Dec 2024 19:28:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tP4CW-0000M9-GD; Sat, 21 Dec 2024 13:27:44 -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 1tP4CV-0000Io-EQ for guile-user@gnu.org; Sat, 21 Dec 2024 13:27:43 -0500 Original-Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tP4CT-00026l-O5 for guile-user@gnu.org; Sat, 21 Dec 2024 13:27:43 -0500 Original-Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-7fd17f231a7so1800567a12.0 for ; Sat, 21 Dec 2024 10:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734805660; x=1735410460; 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=/9A0nXjQdlHKsS5RsMlSNBX0bv6eTHYe2jdlbrQ8E0I=; b=DjTtd0t4u/uHVi56uljfusmct70EM7Gr87BAdJ8QanXogOgiR3dKKd1xb8HpYDq9P7 KPKRoCAoFoVxbv/J5TgGQ1qdjeyqmZORFvWzOLVVlXQnwgvRIGupYCmC30kUOaiPiA52 PZ86WqgKuStmjUAfk9hrdz49r3/M+7sdioQiMlD9JNWs/0LX94U+TagMzCPZyaBuLaOA XtBVCt7Aue3ZWUcgLmPxEiDBNdm0QGRpOB++T3tpfvKm8hZTJmvuYA73NvganRqSNeS+ Jqaf4U4Yee0VfuuBr4YYdqXze6x3ZTE38eHjISVJpNc5AZsGEJPFyTweVNFQ7whO/rvW GO+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734805660; x=1735410460; 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=/9A0nXjQdlHKsS5RsMlSNBX0bv6eTHYe2jdlbrQ8E0I=; b=WDvloQt6mGRNp4TOBI041+agvQ++V6LRxNJAlzfEYd8LekLTxXagNch2oQ2dncx7OO NKjjLLW1UNk/44DDFweDV2JdgoZXeJIjllVRuvohz4TxHsnpBFtBRvCz879LDMN/K8ts Bj+dOckmBk2sdM1Pe6JVC0XldcWK0y0HaUOvFk0BSuCJKqWuj2BZ+IOCMqqilVeZh5iP lwPm7M7tJaVuzHs4pJ2OAjnj8K0mSVcRS3gCIeVGMOM6oGuB9pdrR4Hmnzs3kmb2NeHS LQa54rG814ThuCTgoKOVyix8NeilkEhvLoNklmoRIIce6C1KXFywarxfnBpI9VvV701a qvhw== X-Gm-Message-State: AOJu0YysMeIx6QrZp9IV0+lCrS72TpuOairVUOzMU87z25+44JifEazr 5AQfeLpPrpbJCy4YA9g/umChJIekvc2QIU0NQUyk3vymscXcebhwudZwzkX4xE8211WhK8dKPlI Aj8QRFrrEavbF4jjH7Nn6qF46uY0= X-Gm-Gg: ASbGncuUy/nZkVb+TFj9+moyE3g8yEM7VYKVAGVosUucjKSEGFUMZc1qEG+GexSLpIs aoLoCB2L2Hh5mk8QOclUFd40RKNCuuFd64IS5elu0 X-Google-Smtp-Source: AGHT+IFyv72gG6ge+vLd01vbpadZjJ85UQs2RQxBOKp45h/RC4yPA+zXSwAZEzmXqTkvSSiDF9UgMmVk8kxtjZnkjoQ= X-Received: by 2002:a17:90a:da88:b0:2f4:49d8:e718 with SMTP id 98e67ed59e1d1-2f452e214cemr11158803a91.9.1734805660106; Sat, 21 Dec 2024 10:27:40 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=nalaginrut@gmail.com; helo=mail-pg1-x52e.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:20030 Archived-At: Oh, I'm not familiar with MO file, it seems the endianess is unrelated to the platform, you need go test it to confirm each time. Best regards. On Sat, Dec 21, 2024, 23:31 Vivien Kraus wrote: > Le samedi 21 d=C3=A9cembre 2024 =C3=A0 23:18 +0900, Nala Ginrut a =C3=A9c= rit : > > 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). > > The MO file specification is not very clear: > https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html > > The only place it talks about endianness is this: > > =E2=80=9CThe magic number will always signal GNU MO files. The number is = stored > in the byte order used when the MO file was generated, so the magic > number really is two numbers: 0x950412de and 0xde120495.=E2=80=9D > > I could be wrong, but my interpretation is that I should trust the > magic number to indicate which byte order to use for every 4-byte > number in the file. This is a bit of a stretch, admittedly, but I think > it=E2=80=99s more robust that way. > > Vivien >