From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.25]) by sourceware.org (Postfix) with ESMTPS id 78E183858C78; Fri, 29 Sep 2023 15:58:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 78E183858C78 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=clisp.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=clisp.org ARC-Seal: i=1; a=rsa-sha256; t=1696003096; cv=none; d=strato.com; s=strato-dkim-0002; b=cxK5qs9En02/INrQPX0ay8dtP3J/ESJjSBbEmlRNlhzX1iDl9QF+VtHoBoICS6hlv9 1pFGSExg0Mk8WPd7Ry5xDyzfwbHPeljWpV05hBaKz0DlyeZ9Bq6bBHnL6G4XWwj5qpSP ll/6tQLOlqRGgA6kDwOxonW4jqDweCXgLN0e8z9Zo8P37eEHhzoVwxxj/dEVCbBKA5fI tDkjBmivcDOXLmGJlcSrwTEH9B/0ls3SZsYg/R6liMGbQjC2c+OUY3masKPfg/W+XuZp 8Mx/MXw8vhXJq1u8/Z9rm9nRoV1kAC1xMXPgKvbesJgRt5ILtaZXqHr3mo5zdC1Gk27q /i/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1696003096; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=49V5zazZkunS4wqAubTAUNd4D0Nqj05iLN6dZxPNit8=; b=UMoj8ArvLWoWPgBiHRedIbS99gSlwplPBOYuG7SxMWXgU7LAPTDz2VWcZ1E44Nwy49 FFTw8B/8gKYmzTJYEOjBqa7mX2EPH+NBgpnxqGa8OYLQkDnhEDEyd4O4CdB/ygpUAybw dXZv9xvssyRIcVvfdfUvBPCMceEt197Ww1tZoLY3Icd2rqnnnMxRgoeS0xfv675kN5l7 lKRXAPK8mAiM7Sfg6g5eFhpESwIyYbzdqjIC/Yz0eIIW/S+EjjLpTmnKgPA7wG7q99CC yIFUHE3p8b6SmkRyfSz2v+DFF7aosih9mvAby46v2T0UmckKdYesTR8SPYporLrblYOY cDVQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1696003096; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=49V5zazZkunS4wqAubTAUNd4D0Nqj05iLN6dZxPNit8=; b=LvYleqHD9Hux0lxh5Gpv4RLNI4HqfBH48zARrfiDkdfAm82+gf5YrEYTcR0Jtd7Abx NkbNo5pQ19VHz55dHx3LwVfultFZZrt4ozEcX+/RQVFXrrmWdWONscuYRLqLhC7bLTLQ AAlmChgF1K0K+W7DI2PDdIhNgUm7xV6mhOQ2jnLk9vk4FBGigew9vRASRs8Dc8778j+/ PzWWQ+4T3jambFPwGvwjqSOHDN8h+9L2XxOKneSAcQSu2PDW8aJ4ljNMZBZlSkjt1dNu BfaNQ3g/QnnbbUh9ohXX67Brlx+aTT2fu6OLOWMepuybRyr4YDdTC6T1r0ZTVy658t9Y 99Dw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1696003096; s=strato-dkim-0003; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=49V5zazZkunS4wqAubTAUNd4D0Nqj05iLN6dZxPNit8=; b=aPy5Ox6m134ubpPK0Az6zBo/+IsL12zqOBUKaSIZ4YvFiQCInysRUA8YUwFBefM1ON ATsfGVZMSpABrvoDGbBQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOQ3/eIP2HV3Y2mgYNRn2tXzOt9Bg==" Received: from nimes.localnet by smtp.strato.de (RZmta 49.8.2 AUTH) with ESMTPSA id m03934z8TFwFZcR (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 29 Sep 2023 17:58:15 +0200 (CEST) From: Bruno Haible To: Jan Beulich , Arsen =?utf-8?B?QXJzZW5vdmnEhw==?= Cc: Iain Sandoe , gdb-patches@sourceware.org, binutils@sourceware.org Subject: Re: [PATCH v2 1/2] *: add modern gettext support Date: Fri, 29 Sep 2023 17:58:15 +0200 Message-ID: <2191135.CQOukoFCf9@nimes> In-Reply-To: <864jjhrm73.fsf@aarsen.me> References: <20230926004300.1716711-2-arsen@aarsen.me> <1c90c3ea-0b54-520c-8524-7feb6b88212e@suse.com> <864jjhrm73.fsf@aarsen.me> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Arsen Arsenovi=C4=87 wrote: > Building without gettext in-tree or on the system > should result in a working build with no localization, with gettext > in-tree and on the system it should result in the usage of the system > gettext, with gettext on the tree but _not_ on the system, it should > result in a new (static) copy being built and linked into the tools, > with working localization, and with no gettext in tree but in system > (either in libc or in libintl) should result in a localized build using > the system gettext facilities. >=20 > The behavior for the in-tree but also on the system case (e.g. building > with gettext in-tree on a GNU system) can be overridden with > --with-included-gettext (which is a configure flag for gettext-runtime, > and was a configure flag for intl/ before that). This information is more intelligible when presented as a table. I think the table is like this, right? Situation || Effect || gettext | libintl | libc has | Option || Working sources | installed | *gettext() |--with-included-gettext || Localization in-tree | on system | functions | || =2D--------+-----------+------------+------------------------++------------= =2D--------- - | - | - | (ignored) || No - | - | Y | (ignored) || Yes (libc) - | Y | - | (ignored) || Yes (libintl) - | Y | Y | (ignored) || Yes (libintl) Y | - | - | - || Yes (static = libintl) Y | - | - | Y || Yes (static = libintl) Y | - | Y | - || Yes (libc) Y | - | Y | Y || Yes (static = libintl) Y | Y | - | - || Yes (libintl) Y | Y | - | Y || Yes (static = libintl) Y | Y | Y | - || Yes (libintl) Y | Y | Y | Y || Yes (static = libintl) =2D--------+-----------+------------+------------------------++------------= =2D--------- In all of these cases, the localization can be turned off through the configure option --disable-nls or by the user, at runtime, by choosing the "C" locale. I would find it useful to add this table to the documentation or at least as some internal comments. Bruno