From: Leo Famulari <leo@famulari.name>
To: Mathieu Othacehe <othacehe@gnu.org>
Cc: 52831@debbugs.gnu.org
Subject: bug#52831: [installer] Locale problems with nss-certs
Date: Wed, 29 Dec 2021 19:11:21 -0500 [thread overview]
Message-ID: <Ycz5KVExa1s0dU8p@jasmine.lan> (raw)
In-Reply-To: <878rw3ax2y.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]
On Wed, Dec 29, 2021 at 11:02:45PM +0100, Mathieu Othacehe wrote:
> No, I just sent you a wrong version of my patch, sorry about
> that. LC_ALL needs to be set as an environment variable and with a
> setlocale call.
>
> --8<---------------cut here---------------start------------->8---
> diff --git a/gnu/installer/utils.scm b/gnu/installer/utils.scm
> index bb97bc5560..24c16e7e12 100644
> --- a/gnu/installer/utils.scm
> +++ b/gnu/installer/utils.scm
> @@ -97,10 +97,13 @@ (define (pause)
> ;; least give us translated messages.
> (if supported?
> (setenv "LC_ALL" locale)
> - (setenv "LANGUAGE"
> - (string-take locale
> - (or (string-index locale #\_)
> - (string-length locale)))))))
> + (begin
> + (setlocale LC_ALL "en_US.utf8")
> + (setenv "LC_ALL" "en_US.utf8")
> + (setenv "LANGUAGE"
> + (string-take locale
> + (or (string-index locale #\_)
> + (string-length locale))))))))
> --8<---------------cut here---------------end--------------->8---
Thanks, that does fix the issue with installing nss-certs.
But, now the installer always crashes at the end, after initializing the
system on /mnt, when I "Press Enter to continue". A screenshot of the
error message is attached. I can't scroll down to view more of it.
[-- Attachment #2: installer-crash.png --]
[-- Type: image/png, Size: 131750 bytes --]
next prev parent reply other threads:[~2021-12-30 0:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-27 19:52 bug#52831: [installer] Locale problems with nss-certs Leo Famulari
2021-12-29 17:26 ` Mathieu Othacehe
2021-12-29 18:47 ` Leo Famulari
2021-12-29 22:02 ` Mathieu Othacehe
2021-12-30 0:11 ` Leo Famulari [this message]
2021-12-30 9:37 ` Mathieu Othacehe
2021-12-30 11:21 ` Mathieu Othacehe
2021-12-30 18:11 ` Leo Famulari
2021-12-30 19:34 ` Mathieu Othacehe
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Ycz5KVExa1s0dU8p@jasmine.lan \
--to=leo@famulari.name \
--cc=52831@debbugs.gnu.org \
--cc=othacehe@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).