From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#24192: Gajim fails with locale.Error Date: Tue, 09 Aug 2016 23:53:29 +0300 Message-ID: <87inv9k6k6.fsf@gmail.com> References: <87d1licy1u.fsf@systemreboot.net> <20160809164030.GA30742@jasmine> <21f66ee2d5fdaa88e15f7b2e2c44a7dc@d4n1.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXE2K-00012O-D3 for bug-guix@gnu.org; Tue, 09 Aug 2016 16:54:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXE2E-0001W2-DC for bug-guix@gnu.org; Tue, 09 Aug 2016 16:54:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXE2E-0001Vy-9b for bug-guix@gnu.org; Tue, 09 Aug 2016 16:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bXE2D-0000ZD-VI for bug-guix@gnu.org; Tue, 09 Aug 2016 16:54:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <21f66ee2d5fdaa88e15f7b2e2c44a7dc@d4n1.org> (Daniel Pimentel's message of "Tue, 09 Aug 2016 14:28:28 -0300") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 24192@debbugs.gnu.org Cc: David Thompson Cc-ing David Thompson (the author of haunt). Daniel Pimentel (2016-08-09 20:28 +0300) wrote: > I have a similar problem with locale in Haunt package: > > Backtrace: > In ice-9/boot-9.scm: > 157: 10 [catch #t # ...] > In unknown file: > ?: 9 [apply-smob/1 #] > In ice-9/boot-9.scm: > 63: 8 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 7 [eval # #] > In ice-9/boot-9.scm: > 2401: 6 [save-module-excursion # ice-9/boot-9.scm:4045:3 ()>] > 4050: 5 [#] > 1724: 4 [%start-stack load-stack ...] > 1729: 3 [#] > In unknown file: > ?: 2 [primitive-load > "/gnu/store/v6gq48wbxprf3sbrxdkc9scb80nyypjs-haunt-0.2/bin/.haunt-real"] > In haunt/ui.scm: > 130: 1 [haunt-main > "/gnu/store/v6gq48wbxprf3sbrxdkc9scb80nyypjs-haunt-0.2/bin/.haunt-real" > ...] > In unknown file: > ?: 0 [setlocale 6 ""] > > ERROR: In procedure setlocale: > ERROR: In procedure setlocale: Invalid argument I don't have this problem when GUIX_LOCPATH is set properly (on GuixSD it is "/run/current-system/locale"). Hi David, I think it would be good if haunt just displayed a warning instead of failing like this, so instead of calling 'setlocale' directly in 'haunt-main', you can catch a potential error as it is done in Guix: look at 'install-locale' procedure in (guix ui) module. -- Alex