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

[snap] Snapshot timestamp format doesn't honor user's prefered locale when in a snap #3302

Open
ricab opened this issue Nov 14, 2023 · 3 comments
Labels

Comments

@ricab
Copy link
Collaborator

ricab commented Nov 14, 2023

When running locally, the locale is properly used when formatting a snapshot's timestamp:

$ echo $LC_TIME
pt_PT.UTF-8
$ multipass info alive-chamois.snapshot2 | grep Created
Created:        ter 14 nov 2023 16:04:17 WET

This is not the case when running in a snap

$ echo $LC_TIME
pt_PT.UTF-8
$ multipass info primary.snapshot1 | grep Created
Created:        Tue Nov 14 14:35:27 2023 WET
@ricab ricab added the bug label Nov 14, 2023
@ricab
Copy link
Collaborator Author

ricab commented Nov 14, 2023

Localization of the timestamp added by #3237

@ricab
Copy link
Collaborator Author

ricab commented Nov 14, 2023

A couple of relevant (if old) threads:

From that, we could stage all locales or stage sources and compile locales on first launch. I am not sure if there is an easier way nowadays (e.g. using an extension).

@ricab
Copy link
Collaborator Author

ricab commented Nov 14, 2023

A few things that I tried to throw into the snapcraft.yaml, with no success unfortunately. locales-all adds some 20Mb to the snap package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant