guix-science
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guix HPC Julia package encoding issue


From: Simon Tournier
Subject: Re: Guix HPC Julia package encoding issue
Date: Tue, 5 Mar 2024 19:34:19 +0100

Hi,

Just for the record, since I screwed up my reply-all. :-)

Cheers,
simon


From: Simon Tournier <zimon.toutoune@gmail.com>
Date: Mon, 4 Mar 2024 at 13:44
Subject: Re: Guix HPC Julia package encoding issue
To: Mauritz Stenek <mstenek@disroot.org>


Hi Mauritz,

On dim., 03 mars 2024 at 21:35, Mauritz Stenek via Guix-Science
<guix-science@gnu.org> wrote:

> I installed the julia (v1.9.3) package from the HPC Guix channel;
> running julia from the terminal, I get this warning in the REPL:
>
>> WARNING: failed to select UTF-8 encoding, using ASCII

As Ricardo mentioned, it comes from the configuration of your locales
[1].

First, plain leads to the warning message.

--8<---------------cut here---------------start------------->8---
$ guix shell -C julia
[env]$ julia
WARNING: failed to select UTF-8 encoding, using ASCII
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.3 (2022-11-14)
 _/ |\__'_|_|_|\__'_|  |
|__/                   |

┌ Warning: Terminal not fully functional
└ @ Base client.jl:410
julia>
--8<---------------cut here---------------end--------------->8---

Second, let add and configure the locale:

--8<---------------cut here---------------start------------->8---
$ guix shell -C julia glibc-locales
[env]$ GUIX_LOCPATH=$GUIX_ENVIRONMENT/lib/locale julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.3 (2022-11-14)
 _/ |\__'_|_|_|\__'_|  |
|__/                   |

┌ Warning: Terminal not fully functional
└ @ Base client.jl:410
julia>
--8<---------------cut here---------------end--------------->8---

No more warning.

The manual explains how to setup globally.  Let me know if you need more
details.

Cheers,
simon

1:
https://github.com/JuliaLang/julia/blob/master/src/support/libsupportinit.c#L73



reply via email to

[Prev in Thread] Current Thread [Next in Thread]