* Guix HPC Julia package encoding issue
@ 2024-03-04 3:35 Mauritz Stenek via Guix-Science
2024-03-04 9:37 ` Pascal Quach
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Mauritz Stenek via Guix-Science @ 2024-03-04 3:35 UTC (permalink / raw)
To: guix-science
Hello,
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
Adding subsequent packages will list this warning as well when
they're compiling.
Is this a bug?
Thanks.
--
Mauritz Stenek <mstenek@disroot.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Guix HPC Julia package encoding issue
2024-03-04 3:35 Guix HPC Julia package encoding issue Mauritz Stenek via Guix-Science
@ 2024-03-04 9:37 ` Pascal Quach
2024-03-04 11:18 ` Ricardo Wurmus
2024-03-05 18:34 ` Simon Tournier
2 siblings, 0 replies; 5+ messages in thread
From: Pascal Quach @ 2024-03-04 9:37 UTC (permalink / raw)
To: Mauritz Stenek, guix-science
Hello Mauritz,
This error [1] is generated when the system fails to set a locale. I
wouldn't say it's a bug with the hpc-guix:julia@v1.9.3 package, it seems
to me that this is working correctly.
Best,
Pascal
[1]
https://github.com/JuliaLang/julia/blob/bc2212cc0e9fd499a4916820c95791273b93fadd/src/support/libsupportinit.c#L73
Le 04/03/2024 à 04:35, Mauritz Stenek via Guix-Science a écrit :
> Hello,
>
> 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
>
> Adding subsequent packages will list this warning as well when they're
> compiling.
>
> Is this a bug?
>
> Thanks.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Guix HPC Julia package encoding issue
2024-03-04 3:35 Guix HPC Julia package encoding issue Mauritz Stenek via Guix-Science
2024-03-04 9:37 ` Pascal Quach
@ 2024-03-04 11:18 ` Ricardo Wurmus
2024-03-05 18:05 ` Mauritz Stenek via Guix-Science
2024-03-05 18:34 ` Simon Tournier
2 siblings, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2024-03-04 11:18 UTC (permalink / raw)
To: Mauritz Stenek; +Cc: guix-science
Hi Mauritz,
> 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
This might help:
https://guix.gnu.org/manual/devel/en/html_node/Application-Setup.html#Locales-1
--
Ricardo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Guix HPC Julia package encoding issue
2024-03-04 11:18 ` Ricardo Wurmus
@ 2024-03-05 18:05 ` Mauritz Stenek via Guix-Science
0 siblings, 0 replies; 5+ messages in thread
From: Mauritz Stenek via Guix-Science @ 2024-03-05 18:05 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-science
On 2024-03-04 at 05:18, Ricardo Wurmus <rekado@elephly.net> wrote:
> Hi Mauritz,
>
>> 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
>
> This might help:
It did. Thanks!
>
> https://guix.gnu.org/manual/devel/en/html_node/Application-Setup.html#Locales-1
--
Mauritz Stenek <mstenek@disroot.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Guix HPC Julia package encoding issue
2024-03-04 3:35 Guix HPC Julia package encoding issue Mauritz Stenek via Guix-Science
2024-03-04 9:37 ` Pascal Quach
2024-03-04 11:18 ` Ricardo Wurmus
@ 2024-03-05 18:34 ` Simon Tournier
2 siblings, 0 replies; 5+ messages in thread
From: Simon Tournier @ 2024-03-05 18:34 UTC (permalink / raw)
To: Mauritz Stenek; +Cc: guix-science
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-05 18:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-04 3:35 Guix HPC Julia package encoding issue Mauritz Stenek via Guix-Science
2024-03-04 9:37 ` Pascal Quach
2024-03-04 11:18 ` Ricardo Wurmus
2024-03-05 18:05 ` Mauritz Stenek via Guix-Science
2024-03-05 18:34 ` Simon Tournier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.