diff options
author | Marius Bakke <mbakke@fastmail.com> | 2020-04-11 00:10:23 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2020-04-11 00:10:23 +0200 |
commit | bdb90df764661c11b37c988ea129c8e7a01b1889 (patch) | |
tree | c320b71b136bfcc5e5ec949279a05c8134fb0cca /gnu/installer/utils.scm | |
parent | b859a1bf7953eb98668cb11b459cde48b0dce991 (diff) | |
parent | 8ec9c5fd880be35fe322b0d4dbc69bd2c6c89ef1 (diff) | |
download | guix-bdb90df764661c11b37c988ea129c8e7a01b1889.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/installer/utils.scm')
-rw-r--r-- | gnu/installer/utils.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/installer/utils.scm b/gnu/installer/utils.scm index 0a91ae1e4a..5f8fe8ca01 100644 --- a/gnu/installer/utils.scm +++ b/gnu/installer/utils.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com> +;;; Copyright © 2018, 2020 Mathieu Othacehe <m.othacehe@gmail.com> ;;; Copyright © 2019, 2020 Ludovic Courtès <ludo@gnu.org> ;;; ;;; This file is part of GNU Guix. @@ -93,7 +93,8 @@ COMMAND exited successfully, #f otherwise." (setenv "LC_ALL" locale) (setenv "LANGUAGE" (string-take locale - (string-index locale #\_)))))) + (or (string-index locale #\_) + (string-length locale))))))) (guard (c ((invoke-error? c) (newline) |