On Fri May 19, 2023 at 6:49 PM CEST, Pablo Correa Gómez wrote:
> 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 <ablocorrea@hotmail.com>
Thanks! Merged to master as ecb7660f15c102676139e93c0f7285ec79c33629
> ---
> pmbootstrap version of
> https://gitlab.com/postmarketOS/build.postmarketos.org/-/merge_requests/78
>
>
> 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.40.1