From ecb7660f15c102676139e93c0f7285ec79c33629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Fri, 19 May 2023 18:49:44 +0200 Subject: [PATCH] config: use en_US as default locale MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In theory, the en_US locale is supposed to be aimed at people, while the C locale is aimed as computers. In theory, one of the remarkable differences is in sorting: $ printf '%s\n' \| a \0 \^ \& B c C | LC_COLLATE=C.UTF-8 sort & 0 B C ^ a c | The non-sense there is obvious, with "^" sorting in between the letters, "|" afterwards and sorting of capitals and non-capitals split. The reason is the ordering is based on the ascii table. In theory, an en_US locale should be able to provide a sensitive ordering, but what takes care of it is the libc, and musl does not have it properly implemented. So LC_COLLATE=en_US will still give the same results. However, that's hopefully going to change at some point, and there's no harm in setting a sensible locale by default. Signed-off-by: Pablo Correa Gómez Reviewed-by: Oliver Smith --- pmb/config/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/config/__init__.py b/pmb/config/__init__.py index fae75b17..ad2d05b6 100644 --- a/pmb/config/__init__.py +++ b/pmb/config/__init__.py @@ -113,7 +113,7 @@ defaults = { "jobs": str(multiprocessing.cpu_count() + 1), "kernel": "stable", "keymap": "", - "locale": "C.UTF-8", + "locale": "en_US.UTF-8", "log": "$WORK/log.txt", "mirror_alpine": "http://dl-cdn.alpinelinux.org/alpine/", # NOTE: mirrors_postmarketos variable type is supposed to be -- 2.45.2