summaryrefslogtreecommitdiff
path: root/guix/store.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/store.scm')
-rw-r--r--guix/store.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/guix/store.scm b/guix/store.scm
index af311a0ebd..8d1099dab2 100644
--- a/guix/store.scm
+++ b/guix/store.scm
@@ -534,7 +534,10 @@ encoding conversion errors."
(substitute-urls #f)
;; Number of columns in the client's terminal.
- (terminal-columns (terminal-columns)))
+ (terminal-columns (terminal-columns))
+
+ ;; Locale of the client.
+ (locale (false-if-exception (setlocale LC_ALL))))
;; Must be called after `open-connection'.
(define socket
@@ -573,6 +576,9 @@ encoding conversion errors."
,@(if terminal-columns
`(("terminal-columns"
. ,(number->string terminal-columns)))
+ '())
+ ,@(if locale
+ `(("locale" . ,locale))
'()))))
(send (string-pairs pairs))))
(let loop ((done? (process-stderr server)))