[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9655: 24.0.50; `set-locale-environment' should use completion
From: |
Lars Ingebrigtsen |
Subject: |
bug#9655: 24.0.50; `set-locale-environment' should use completion |
Date: |
Wed, 25 Aug 2021 14:36:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> Forgot to mention that this API has a Lisp binding in Emacs:
> w32-get-valid-locale-ids. E.g., try
>
> (mapcar 'w32-get-locale-info (w32-get-valid-locale-ids))
Looking at `set-locale-environment', it already has a bunch of hacks
that depend on Unix-related stuff:
(setq locale-translation-file-name
(let ((files
'("/usr/share/X11/locale/locale.alias" ; e.g. X11R7
I wonder whether we should just add an equally hacky `get-locale-names'
function that would call that w32 function (if defined), and if not,
just parse the output of "locale -a" (if "locale" exists on the system).
Any opinions?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#9655: 24.0.50; `set-locale-environment' should use completion,
Lars Ingebrigtsen <=