>From 5226abeac27e5b6f79cc6e2b933f146040e2c2bd Mon Sep 17 00:00:00 2001
From: Alex Kost
Date: Wed, 23 Sep 2015 13:42:44 +0300
Subject: [PATCH] emacs: Handle unicode symbols in texi descriptions.
Fixes (FIXME).
* emacs/guix-backend.el (guix-start-repl-maybe): Call 'setlocale' for
the internal REPL.
---
emacs/guix-backend.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/emacs/guix-backend.el b/emacs/guix-backend.el
index 412d648..32d449a 100644
--- a/emacs/guix-backend.el
+++ b/emacs/guix-backend.el
@@ -190,7 +190,11 @@ display messages."
guix-default-port (buffer-name repl))))
(set repl-var repl)
(and end-msg (message end-msg))
- (unless internal
+ (if internal
+ ;; Without this, the REPL will error when package
+ ;; descriptions contain unicode symbols. See
+ ;; (FIXME) for details.
+ (guix-geiser-eval "(setlocale LC_ALL)" repl)
(run-hooks 'guix-after-start-repl-hook))))))
(defun guix-start-repl (buffer &optional address)
--
2.5.0