all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: Luis Felipe <luis.felipe.la@protonmail.com>,
	guix-devel <guix-devel@gnu.org>
Subject: Re: website: Building fails because of missing locales
Date: Tue, 06 Apr 2021 14:14:58 -0400	[thread overview]
Message-ID: <F0B2E888-909F-4F68-904C-737F18C3BAA3@lepiller.eu> (raw)
In-Reply-To: <zmUQHYXI7D_S3OGU8gI9PYkGhKRudRfYX2fnij6dJCwsqAzjyozHXhPk6eD--uD8Thk5-NURMaSdirkLO169vba5lYGBIZJk9C2JjK5bFnw=@protonmail.com>

[-- Attachment #1: Type: text/plain, Size: 3503 bytes --]

Oops, I happen to have an esperanto locale on my system, and berlin probably has one too. That would explain why I was able to build the website, and why the website is updated.

This is how I defined that locale: https://git.lepiller.eu/system-configuration/tree/-/modules/config/os.scm#L117

Weirdly, glibc-locales provides "eo" but not "eo.utf8"

Le 6 avril 2021 11:59:20 GMT-04:00, Luis Felipe <luis.felipe.la@protonmail.com> a écrit :
>Hello,
>
>I updated my local copy of guix-artwork repository today and now
>running "haunt build" fails with this message:
>
>★★★★★★★★★★★★★★★★★★★★
>Backtrace:
>In ice-9/threads.scm:
>    390:8 19 (_ _)
>In ice-9/boot-9.scm:
>  3223:13 18 (_)
>In ice-9/threads.scm:
>    390:8 17 (_ _)
>In ice-9/boot-9.scm:
>  3507:20 16 (_)
>   2806:4 15 (save-module-excursion _)
>  3527:26 14 (_)
>In unknown file:
>          13 (primitive-load-path "apps/base/data" #<procedure 7fd2e…>)
>In ice-9/eval.scm:
>   626:19 12 (_ #<directory (apps base data) 7fd2ec67e640>)
>   173:55 11 (_ #<directory (apps base data) 7fd2ec67e640>)
>   174:20 10 (_ #<directory (apps base data) 7fd2ec67e640>)
>   177:32  9 (lp (#<procedure 7fd2eaff9b40 at ice-9/eval.scm:297:…> …))
>    159:9  8 (_ #(#<directory (apps base data) 7fd2ec67e640> (G_ …) …))
>    159:9  7 (_ #(#<directory (apps base data) 7fd2ec67e640> (G_ …) …))
>    159:9  6 (_ #(#<directory (apps base data) 7fd2ec67e640> (G_ …) …))
>    163:9  5 (_ #(#<directory (apps base data) 7fd2ec67e640> (G_ …) …))
>In srfi/srfi-1.scm:
>   586:29  4 (map1 ("de_DE" "en_US" "eo" "es_ES" "fr_FR" "ko_KR" # #))
>   586:29  3 (map1 ("en_US" "eo" "es_ES" "fr_FR" "ko_KR" "ru_RU" "…"))
>   586:17  2 (map1 ("eo" "es_ES" "fr_FR" "ko_KR" "ru_RU" "zh_CN"))
>In ice-9/eval.scm:
>    619:8  1 (_ #(#(#<directory (apps base data) 7fd2ec67e640> # …) …))
>In unknown file:
>           0 (setlocale 6 "eo.utf8")
>
>ERROR: In procedure setlocale:
>In procedure setlocale: Argumento inválido
>★★★★★★★★★★★★★★★★★★★★
>
>I see in the commit log that there's a new commit adding Esperanto to
>the website translations, but I was surprised to see this error because
>the website manifest.scm includes "glibc-locales" and I thought it
>would provide "eo.utf8" locale, but, apparently, it doesn't (see
>"locale -a" output below).
>
>Also, if I understand correctly, the package description for
>"glibc-locales" says it provides more than 400 locales, but once
>installed, I see less than 40:
>
>★★★★★★★★★★★★★★★★★★★★
>$ locale -a
>C
>ca_ES.utf8
>cs_CZ.utf8
>da_DK.utf8
>de_DE.utf8
>el_GR.utf8
>en_AU.utf8
>en_CA.utf8
>en_GB.utf8
>en_US.utf8
>en_US.UTF-8
>es_AR.utf8
>es_CL.utf8
>es_CO.utf8
>es_ES.utf8
>es_MX.utf8
>fi_FI.utf8
>fr_BE.utf8
>fr_CA.utf8
>fr_CH.utf8
>fr_FR.utf8
>ga_IE.utf8
>it_IT.utf8
>ja_JP.utf8
>ko_KR.utf8
>nb_NO.utf8
>nl_NL.utf8
>pl_PL.utf8
>POSIX
>pt_PT.utf8
>ro_RO.utf8
>ru_RU.utf8
>sv_SE.utf8
>tr_TR.utf8
>uk_UA.utf8
>vi_VN.utf8
>zh_CN.utf8
>★★★★★★★★★★★★★★★★★★★★
>
>I'm not sure what to do here. Maybe the use of "setlocale" should be
>guarded against missing locales, but I'm also confused about the 400
>locales part, where's the rest?
>
>(I'm using Guix System 1148890)
>
>
>---
>Luis Felipe López Acevedo
>https://luis-felipe.gitlab.io/

[-- Attachment #2: Type: text/html, Size: 4021 bytes --]

      parent reply	other threads:[~2021-04-06 18:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06 15:59 website: Building fails because of missing locales Luis Felipe
2021-04-06 18:11 ` Leo Famulari
2021-04-06 20:20   ` Julien Lepiller
2021-04-07  2:20     ` Luis Felipe
2021-04-07 11:09       ` Julien Lepiller
2021-04-07 13:48         ` Luis Felipe
2021-04-07 15:10           ` Julien Lepiller
2021-04-07 16:27             ` Luis Felipe
2021-04-07 17:13               ` Julien Lepiller
2021-04-07 17:22                 ` Julien Lepiller
2021-04-07 18:11                   ` Luis Felipe
2021-04-08 20:04                     ` Luis Felipe
2021-04-10 11:00                 ` Julien Lepiller
2021-04-06 18:14 ` Julien Lepiller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F0B2E888-909F-4F68-904C-737F18C3BAA3@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=guix-devel@gnu.org \
    --cc=luis.felipe.la@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.