Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XFCE Clock set first day of the week (set system locale) #20684

Closed
testman42 opened this issue Jun 26, 2024 · 2 comments
Closed

XFCE Clock set first day of the week (set system locale) #20684

testman42 opened this issue Jun 26, 2024 · 2 comments

Comments

@testman42
Copy link

testman42 commented Jun 26, 2024

My setup is XFCE4 desktop being displayed through Termux-X11.
The primary issue that I am facing is that I am unable to set the calendar in XFCE4 Clock applet to use Monday as the first day of the week.
As screenshot below shows, there does not seem to be any relevant option in the applet settings.

After searching for the solution on the internet, I came across many answers for regular desktop Linux, which claim that solution here is to change the system locale through localectl command or some other way.
However, packages locale and localectl do not seem to be available through the Termux package manager.

Also relevant: running echo $LANG returns en_US.UTF-8. I assume that this is the Termux default?
Also the issue #19646 and the discussion #18297 seem to be somewhat related to this issue.

What would be the best way to change the locale and therefore change the way calendar gets displayed?

Screenshot_2024-06-26_17-25-46

@IntinteDAO
Copy link
Contributor

I assume that this is the Termux default?

I think it's sadly Android Bionic default variable and Termux can't change it.

@sylirre
Copy link
Member

sylirre commented Jun 28, 2024

running echo $LANG returns en_US.UTF-8. I assume that this is the Termux default?

We have no variants for something else suitable. See https://github.com/aosp-mirror/platform_bionic/blob/8cbea9196765684bc65c2a495a4f785de5b7c46e/libc/bionic/locale.cpp#L109-L115:

static bool __is_supported_locale(const char* locale_name) {
  return (strcmp(locale_name, "") == 0 ||
          strcmp(locale_name, "C") == 0 ||
          strcmp(locale_name, "C.UTF-8") == 0 ||
          strcmp(locale_name, "en_US.UTF-8") == 0 ||
          strcmp(locale_name, "POSIX") == 0);
}

That makes possible to select only en_US.UTF-8 (most suitable), C.UTF-8, C or POSIX.

@sylirre sylirre closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants