aboutsummaryrefslogtreecommitdiff
path: root/guix-import.in
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-01-29 23:59:27 +0100
committerLudovic Courtès <ludo@gnu.org>2013-01-30 00:09:32 +0100
commit473b03b3c6fbca909e18dbb5888ac5a98992207a (patch)
treef193b7488453c4794f67c1bec157807788af42f8 /guix-import.in
parentbdcf35a6b294c1db7ce78a5550ba51e067863069 (diff)
downloadguix-473b03b3c6fbca909e18dbb5888ac5a98992207a.tar
guix-473b03b3c6fbca909e18dbb5888ac5a98992207a.tar.gz
Gracefully handle failure to install the current locale.
* guix/ui.scm (install-locale): New procedure. * guix-build.in, guix-download.in, guix-gc.in, guix-import.in, guix-package.in: Use it instead of (setlocale LC_ALL "").
Diffstat (limited to 'guix-import.in')
-rw-r--r--guix-import.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix-import.in b/guix-import.in
index af5c5897e0..97619a9a59 100644
--- a/guix-import.in
+++ b/guix-import.in
@@ -115,7 +115,7 @@ Import and convert the Nix expression ATTRIBUTE of NIXPKGS.\n"))
(alist-cons 'argument arg result))
%default-options))
- (setlocale LC_ALL "")
+ (install-locale)
(textdomain "guix")
(setvbuf (current-output-port) _IOLBF)
(setvbuf (current-error-port) _IOLBF)