From unknown Sun Jun 15 08:02:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#63608 <63608@debbugs.gnu.org> To: bug#63608 <63608@debbugs.gnu.org> Subject: Status: UTF-8 support absent within guix shell --pure less Reply-To: bug#63608 <63608@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:02:25 +0000 retitle 63608 UTF-8 support absent within guix shell --pure less reassign 63608 guix submitter 63608 Bruno Victal severity 63608 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 20 10:17:26 2023 Received: (at submit) by debbugs.gnu.org; 20 May 2023 14:17:27 +0000 Received: from localhost ([127.0.0.1]:59053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0NOg-0000Bh-Fn for submit@debbugs.gnu.org; Sat, 20 May 2023 10:17:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:43108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0NOc-0000BM-NW for submit@debbugs.gnu.org; Sat, 20 May 2023 10:17:25 -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 1q0NOa-0007Ys-Db for bug-guix@gnu.org; Sat, 20 May 2023 10:17:21 -0400 Received: from smtpm4.myservices.hosting ([185.26.105.235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0NOY-0003mG-3j for bug-guix@gnu.org; Sat, 20 May 2023 10:17:20 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm4.myservices.hosting (Postfix) with ESMTP id EDF6820C87; Sat, 20 May 2023 16:17:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 2B1568009B; Sat, 20 May 2023 16:17:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0gaJY5uoDnIs; Sat, 20 May 2023 16:17:13 +0200 (CEST) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 5C2A380098; Sat, 20 May 2023 16:17:13 +0200 (CEST) Message-ID: <64646e0d-75b4-3564-8dc8-b56e2cd7138a@makinata.eu> Date: Sat, 20 May 2023 15:17:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Content-Language: en-US To: bug-guix From: Bruno Victal Subject: UTF-8 support absent within guix shell --pure less Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.26.105.235; envelope-from=mirai@makinata.eu; helo=smtpm4.myservices.hosting X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: mirai@makinata.eu, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Within a ``guix shell --pure less'' environment, the “less” command does not display UTF-8 characters properly: --8<---------------cut here---------------start------------->8--- ~/src/guix$ guix shell --pure less ~/src/guix [env]$ less gnu/packages/java-xml.scm "gnu/packages/java-xml.scm" may be a binary file. See it anyway? --8<---------------cut here---------------end--------------->8--- Answering the prompt with 'y' will display: --8<---------------cut here---------------start------------->8--- ;;; GNU Guix --- Functional package management for GNU ;;; Copyright 2017, 2021, 2023 Ricardo Wurmus ;;; Copyright 2017, 2018, 2021 Julien Lepiller ;;; Copyright 2018 Gbor Boskovits ;;; Copyright 2019, 2021 Tobias Geerinckx-Rice ;;; Copyright 2020 Vincent Legoll ;;; Copyright 2021 Lo Le Bouter ;;; Copyright 2022 Christopher Baines ;;; ;;; This file is part of GNU Guix. … --8<---------------cut here---------------end--------------->8--- This can be worked around by setting the LESSCHARSET environment variable: --8<---------------cut here---------------start------------->8--- ~/src/guix [env]$ LESSCHARSET=utf8 less gnu/packages/java-xml.scm --8<---------------cut here---------------end--------------->8--- Which will correctly display (without any prompts): --8<---------------cut here---------------start------------->8--- ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017, 2021, 2023 Ricardo Wurmus ;;; Copyright © 2017, 2018, 2021 Julien Lepiller ;;; Copyright © 2018 Gábor Boskovits ;;; Copyright © 2019, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2021 Léo Le Bouter ;;; Copyright © 2022 Christopher Baines ;;; ;;; This file is part of GNU Guix. … --8<---------------cut here---------------end--------------->8--- This does not happen with a non-pure ``guix shell less'', it properly shows UTF-8 characters without having to manually set any environment variables. Adding glibc-locales to ``guix shell --pure less glibc-locales'' does not help either and in neither environments is GUIX_LOCPATH set as it was suggested at . From debbugs-submit-bounces@debbugs.gnu.org Mon May 22 10:25:28 2023 Received: (at submit) by debbugs.gnu.org; 22 May 2023 14:25:28 +0000 Received: from localhost ([127.0.0.1]:35502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q16TX-0002eE-Cw for submit@debbugs.gnu.org; Mon, 22 May 2023 10:25:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:47808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q16TS-0002dy-5A for submit@debbugs.gnu.org; Mon, 22 May 2023 10:25:25 -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 1q16TQ-00042C-QG for bug-guix@gnu.org; Mon, 22 May 2023 10:25:20 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q16TL-0003hB-Cv for bug-guix@gnu.org; Mon, 22 May 2023 10:25:16 -0400 Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-3f6915ca22eso16625841cf.0 for ; Mon, 22 May 2023 07:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684765512; x=1687357512; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=KjLevsVS1asCxHyE6x9XONtd8kyt19TYwGJ+rmZsnkY=; b=QYyYe6KSHLjd7PrAERifOwspKcgW0Ee4urOGwVN3DQALmvOK4Z1aV2Ng6QeE3goNok WAQMbRQJwqoWKtap33lHnqS37M2fVk7RdkEmqpbn6MGgS1i+sw8uGT5+Duv2nQ2n0xTM whGNu/XJuBwChKrdKEb7GZq9JgqTVWfkYU1GxUcZTY9aQcxmOdhgIJXw1Rwy6u4GxW8k elltWhUs9FJBLiDnBjOMZ6gaal2yf3f1Q+0onk82DcIoAymY/jQst50j3D1mWgChgR7i dS2aQuxBXKa84nXhbVufzs4xFFZ64SZ05B63tSUoY4PO/vbsyTp2KZOyjFnWrknWGR94 Fk+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684765512; x=1687357512; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KjLevsVS1asCxHyE6x9XONtd8kyt19TYwGJ+rmZsnkY=; b=Whu8bdBdxhfA9kH8Gxmt1SfjDese9XLwUCtRFFLKd1Ezy9iMxzod6qDThMRnzLnLrE SgfQI6Bm7RzzmGbQIfMaNlZ5hSVjMbHiBffyDgPVzRAy1D8QADgxtwUMLDSbTBCQAhh6 h6QJFXdfHAp8kVjX0kdNWMCworYr247DgUw3tdM4UPKUo8V9qw0TQNN47Zpo9jn8ibX1 Un1HG4YOqeP9VaQrLjQttDWdwOwi9dUnGTwZzojrT3o+aH/am88W5lywpIQy45V2blO0 VpD05NnPKOqksE84i4uAkUgy34wG1yNfqOdBn/Omz3vdJP4T9UkiujBYQmNfdF9tjRBo 0R+w== X-Gm-Message-State: AC+VfDwTccgAz0Dfq2uG+jfpPxrtPpdRwadmGrFryfo9tTpuAQRvjI+O D6ZyKOwQHBQbcapq9ZlaToYIbUl5MHhqeA== X-Google-Smtp-Source: ACHHUZ6E77ETyZHHfpVta8s2jJUhNAb6Jz6BgOqaYRr+uAtZAvmU9zRM9ar39xRZInrNEqoCn6lK5A== X-Received: by 2002:a05:622a:608:b0:3f4:ec9f:95e4 with SMTP id z8-20020a05622a060800b003f4ec9f95e4mr19595214qta.6.1684765511743; Mon, 22 May 2023 07:25:11 -0700 (PDT) Received: from hurd (dsl-205-233-124-30.b2b2c.ca. [205.233.124.30]) by smtp.gmail.com with ESMTPSA id z1-20020ac87ca1000000b003f517e1fed2sm926838qtv.15.2023.05.22.07.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 07:25:11 -0700 (PDT) From: Maxim Cournoyer To: Bruno Victal Subject: Re: UTF-8 support absent within guix shell --pure less References: <64646e0d-75b4-3564-8dc8-b56e2cd7138a@makinata.eu> Date: Mon, 22 May 2023 10:25:10 -0400 In-Reply-To: <64646e0d-75b4-3564-8dc8-b56e2cd7138a@makinata.eu> (Bruno Victal's message of "Sat, 20 May 2023 15:17:12 +0100") Message-ID: <871qj8jveh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82a.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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: bug-guix X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi Bruno, Bruno Victal writes: [...] > ;;; GNU Guix --- Functional package management for GNU > ;;; Copyright 2017, 2021, 2023 Ricardo Wurmus > ;;; Copyright 2017, 2018, 2021 Julien Lepiller > ;;; Copyright 2018 Gbor Boskovits > ;;; Copyright 2019, 2021 Tobias Geerinckx-Rice > ;;; Copyright 2020 Vincent Legoll > ;;; Copyright 2021 Lo Le Bouter > ;;; Copyright 2022 Christopher Baines > ;;; > ;;; This file is part of GNU Guix. > > =E2=80=A6 > > > This can be worked around by setting the LESSCHARSET environment variable: > > ~/src/guix [env]$ LESSCHARSET=3Dutf8 less gnu/packages/java-xml.scm > > > Which will correctly display (without any prompts): > > ;;; GNU Guix --- Functional package management for GNU > ;;; Copyright =C2=A9 2017, 2021, 2023 Ricardo Wurmus > ;;; Copyright =C2=A9 2017, 2018, 2021 Julien Lepiller > ;;; Copyright =C2=A9 2018 G=C3=A1bor Boskovits > ;;; Copyright =C2=A9 2019, 2021 Tobias Geerinckx-Rice > ;;; Copyright =C2=A9 2020 Vincent Legoll > ;;; Copyright =C2=A9 2021 L=C3=A9o Le Bouter > ;;; Copyright =C2=A9 2022 Christopher Baines > ;;; > ;;; This file is part of GNU Guix. > > =E2=80=A6 > > This does not happen with a non-pure ``guix shell less'', it properly > shows UTF-8 characters without having to manually set any environment > variables. > Adding glibc-locales to ``guix shell --pure less glibc-locales'' > does not help either and in neither environments is GUIX_LOCPATH set > as it was suggested at . So GUIX_LOCPATH is *not* set, right? Could you try adding 'glibc' to the environment as well? It's the one providing the GUIX_LOCPATH search path. --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 30 11:07:38 2023 Received: (at 63608) by debbugs.gnu.org; 30 Jun 2023 15:07:39 +0000 Received: from localhost ([127.0.0.1]:55529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFFik-00006c-FC for submit@debbugs.gnu.org; Fri, 30 Jun 2023 11:07:38 -0400 Received: from smtpm3.myservices.hosting ([185.26.105.234]:41426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFFih-00006Q-V3 for 63608@debbugs.gnu.org; Fri, 30 Jun 2023 11:07:36 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm3.myservices.hosting (Postfix) with ESMTP id CF3C020E6F; Fri, 30 Jun 2023 17:07:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 42B318009B; Fri, 30 Jun 2023 17:07:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ciABVXgHISmq; Fri, 30 Jun 2023 17:07:34 +0200 (CEST) Received: from [192.168.1.116] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id D2D4A8009A; Fri, 30 Jun 2023 17:07:33 +0200 (CEST) Message-ID: Date: Fri, 30 Jun 2023 16:07:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: UTF-8 support absent within guix shell --pure less Content-Language: en-US To: Maxim Cournoyer References: <64646e0d-75b4-3564-8dc8-b56e2cd7138a@makinata.eu> <871qj8jveh.fsf@gmail.com> From: Bruno Victal In-Reply-To: <871qj8jveh.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 63608 Cc: 63608@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) On 2023-05-22 15:25, Maxim Cournoyer wrote:> So GUIX_LOCPATH is *not* set, right? Could you try adding 'glibc' to > the environment as well? It's the one providing the GUIX_LOCPATH search > path. The issue still remains (with and without glibc-locales): --8<---------------cut here---------------start------------->8--- ~/src/guix$ guix shell --pure less glibc glibc-locales ~/src/guix [env]$ less gnu/packages/java-xml.scm "gnu/packages/java-xml.scm" may be a binary file. See it anyway? … ~/src/guix [env]$ echo $GUIX_LOCPATH /gnu/store/654wv1gyw1r2gpcwggmn8spbcrq5b9vq-profile/lib/locale --8<---------------cut here---------------end--------------->8--- -- Furthermore, I consider that nonfree software must be eradicated. Cheers, Bruno.