Skip to content

fix(rust): keep the encoding when storing the locale#2062

Merged
imobachgs merged 5 commits intomasterfrom
invalid-locale
Feb 25, 2025
Merged

fix(rust): keep the encoding when storing the locale#2062
imobachgs merged 5 commits intomasterfrom
invalid-locale

Conversation

@imobachgs
Copy link
Copy Markdown
Contributor

@imobachgs imobachgs commented Feb 24, 2025

Problem

Agama accepted locales with no encoding (en_US instead of en_US.UTF-8). However, it kept the en_US value, making the web UI to crash. See #2051 for further details.

Solution

  • Use UTF-8 as default encoding if none is given.
  • Take the chance to do some minor refactoring to handle keymaps and locales in the same way.
  • Improve systemd-firstboot logging.
  • Extend unit tests.

Testing

  • Added a new unit test
  • Tested manually

@imobachgs imobachgs changed the title fix(rust): do not accept unknown/invalid locales fix(rust): keep the encoding when storing the locale Feb 24, 2025
@imobachgs imobachgs requested a review from teclator February 24, 2025 19:44
@imobachgs imobachgs merged commit 550c075 into master Feb 25, 2025
6 checks passed
@imobachgs imobachgs deleted the invalid-locale branch February 25, 2025 06:07
imobachgs added a commit that referenced this pull request Feb 26, 2025
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Feb 26, 2025
https://build.opensuse.org/request/show/1248595
by user IGonzalezSosa + dimstar_suse
- Version 12

- Add the missing shebang line to the agama-scripts.sh shell script
  (gh#agama-project/agama#2077).
- Save logs after running post installation scripts
  (gh#agama-project/agama#2078).

- Keep the encoding when storing the locale (gh#agama-project/agama#2062).

- Extend storage model schema to support global encryption
  (gh#agama-project/agama#2031).

- Introduce the storage model to support the new storage user
  interface (gh#agama-project/agama#2033)

- Expose root and first user passwords (gh#agama-project/agama#2005).
- Remove support for auto-login.

- Added reboot command to the CLI (gh#agama-project/agama#1970)

- Set console and X11 keymaps when changing the installer keymap
  (bsc#1236174).
- Use the "dashed" form of the keymap identifier when calling
  systemd-firstboo
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

Successfully merging this pull request may close these issues.

2 participants