From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qL3AFeUvMGNriwAAbAwnHQ (envelope-from ) for ; Sun, 25 Sep 2022 12:39:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AOrYFOUvMGMbCwEAG6o9tA (envelope-from ) for ; Sun, 25 Sep 2022 12:39:33 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E74ED2B260 for ; Sun, 25 Sep 2022 12:39:32 +0200 (CEST) Received: from localhost ([::1]:56712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocP2p-0006ip-3j for larch@yhetil.org; Sun, 25 Sep 2022 06:39:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocP2b-0006ih-0i for help-guix@gnu.org; Sun, 25 Sep 2022 06:39:17 -0400 Received: from marvid.fr ([163.172.81.107]:44822 helo=courriel.marvid.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocP2Y-0006yR-LS for help-guix@gnu.org; Sun, 25 Sep 2022 06:39:16 -0400 Received: from localhost (schwifty.marvid.fr [51.159.4.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by sahkopoika (Postfix) with ESMTPSA id BA0E376F9768; Sun, 25 Sep 2022 12:39:04 +0200 (CEST) References: <874jwwny6n.fsf@posteo.net> User-agent: mu4e 1.8.9; emacs 28.1 From: Sergiu Ivanov To: Fredrik Salomonsson Cc: help-guix@gnu.org Subject: Re: Combine locales Date: Sun, 25 Sep 2022 12:38:38 +0200 In-reply-to: <874jwwny6n.fsf@posteo.net> Message-ID: <87h70v91rr.fsf@colimite.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=163.172.81.107; envelope-from=sivanov@colimite.fr; helo=courriel.marvid.fr X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, FORGED_SPF_HELO=0.111, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664102372; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=KLYP26MrKcsxM0/cvi1Q9WrZy9+RXONk4tTEeNxo3tM=; b=WldpdoXDnHcZe+lpMV/rS8GUGIH1ga8O+If8MHWO0n+RPNQ2CcxBmoITtgv4IYCg0j+Qwu KglicjWqrFK3UZkjlkrngqMLxA05G26kJjLG4GD24klyv2J4s19RjsFmcl5mFlkSbctEou aQM/N8kPvIELPu+WLVFxihudyvl3WoHZJH6VyrOpoL1+cpFUZ0kOTzhn4LLv8jYONv/drO BXJtYcyzFiacYGksn/XtKwpd6f9ricEOwzq5+8rqtl9jQtUGqtNa2LRuY+uWs/3Z6ef8zv GTXcev7Cl8PBy7tnd6TzrquYpXgDg7Ny4RmLwRAZC8F7aE7uQyHdeqChyZiRdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664102372; a=rsa-sha256; cv=none; b=T/NZ4Vwi4u708tzNCz6b0jJZOoEwvFT2B4XrvSERSOCaHffyXKRQ9NVAT6U+XOrUYcuKeg EFEKzEne1R6qlSnmHmXjYPerjGqDzplE12kVfZyDcidlHm2RucAbOz0FRQk5vzcczbZcNr 9ZkarbfyXciwJkw5mmw4UPW22SK73+krSaDtk3+idbacNGA9VoyDtyXN/cvdbJAIjLN/hx jhiFuh7hkByMA4RZzdqYLrijmmwRA/4/7Hl01QqTogC8FeAQGAP2l7wjzqDbSzXkCUxno7 vHx9j1kFOyOgRA/OPM5xsfZdCAXFmc7awsapTijFuBAah6smg3NqGU0pzNYFwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.15 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E74ED2B260 X-Spam-Score: -1.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: gyp7kU+K5Vq+ Hi Fredrik, Fredrik Salomonsson [2022-09-25T01:35:12+0200]: > > One thing I cannot figure out is how to setup the operating-system to > use English as the language but use Swedish for the date format. Similar > to what is described in Locale Names[0] in the libc manual. > > I.e. on my foreign distro I have /etc/locale.conf define: > ---=E2=9C=80-------------------------------------------------------------= --------------- > LANG=3Den_US.UTF-8 > LC_TIME=3Dsv_SE.UTF-8 > -------------------------------------------------------------------------= ------- > > In my operating-system configuration system I have: > ---=E2=9C=80-------------------------------------------------------------= --------------- > (operating-system > ;;=E2=80=A6 > (locale "en_US.utf8") > (locale-definitions > (list > (locale-definition (name "en_US.utf8") (source "en_US") (charset "UTF-= 8")) > (locale-definition (name "sv_SE.utf8") (source "sv_SE") (charset "UTF-= 8")))) > ;;=E2=80=A6 > ) > -------------------------------------------------------------------------= ------- I use a similar definition in operating-system, and I set up additional locale parameters in my Guix Home configuration, using the environment-variables field in home-bash-configuration [0]. I think it's fine if you launch everything from a shell, but it will probably not work if you extensively use a graphical desktop environment. - Sergiu [0] https://guix.gnu.org/manual/devel/en/html_node/Shells-Home-Services.html