Menu

#24 Missing support for en_US.UTF-8 locale despite defaulting to it

v1.0_(example)
closed-fixed
None
5
2024-02-17
2024-02-14
No

Function load_lang_set() in scripts/sbin/drbl-functions defaults to en_US.UTF-8 locale. However, directory lang/bash provides en_US only. As a result, when run with LC_MESSAGES set to en_US.UTF-8 or unspecified, this function stops, saying “Not such language option!!!”. That also happens even when the wrapping utility, such as ocs-onthefly, is run with -l en_US option — because that parameter is not passed to child scripts.

Proposed solutions:

  1. Either add symlinks, like en_US.UTF-8 pointing to en_US, for each translation file — like Clonezilla does in setup/files/gparted/usr/share/gparted/lang.
  2. Or, better yet, patch the aforementioned function to automatically use an existing xx_XX translation file when xx_XX.UTF-8 locale requested; and also support basic C locale as an alias of en_US.

See the attached patch file regarding the second option.

1 Attachments

Discussion

  • Steven Shiau

    Steven Shiau - 2024-02-17
    • status: open --> closed-fixed
    • assigned_to: Steven Shiau
     
  • Steven Shiau

    Steven Shiau - 2024-02-17

    Thanks for your patch. It's applied in the git repository. We will use it in the next release.

    Steven

     

Log in to post a comment.

MongoDB Logo MongoDB