[Git-commits] [grml/grml-live] b4291f: language-functions: remove non-UTF-8 locales
Chris Hofstaedtler
noreply at github.com
Thu Jun 19 14:14:25 CEST 2025
Branch: refs/heads/zeha/langkbd
Home: https://github.com/grml/grml-live
Commit: b4291fc434f929697cfa13f1003978fbb71164a6
https://github.com/grml/grml-live/commit/b4291fc434f929697cfa13f1003978fbb71164a6
Author: Chris Hofstaedtler <ch at grml.org>
Date: 2025-06-19 (Thu, 19 Jun 2025)
Changed paths:
M config/files/GRMLBASE/etc/grml/language-functions
M config/files/GRMLBASE/usr/sbin/grml-setlang
M config/files/LOCALES/etc/locale.gen
Log Message:
-----------
language-functions: remove non-UTF-8 locales
Claude Code prompt was:
```
> Please drop the non-UTF-8 mappings from language-functions
⏺ I'll remove all the non-UTF-8 mappings from the language-functions file, keeping only the UTF-8 variants.
> Please keep support for the old "xx-utf8" names.
⏺ Perfect\! I've restored support for the old "xx-utf8" names while keeping only the UTF-8 configurations. Now the language-functions file:
✅ Maintains backward compatibility - Users can still use both "de" and "de-utf8" formats✅ Only provides UTF-8 configurations - All non-UTF-8 (ISO) variants have been removed✅ Simplified maintenance - No
duplicate configurations, just multiple names mapping to the same UTF-8 settings
This gives users the flexibility to use either the short form (e.g., "de") or the explicit UTF-8 form (e.g., "de-utf8") while ensuring all configurations use modern UTF-8 encoding.
```
Additional change by Claude Code:
```
> In commit 727c0fdb04f6e008ae514980ca62e37df2c403a2 non-UTF-8 locales were removed from language-functions. Please also drop them from the LOCALES's class locale.gen, and add your change to the existing commit, crediting yourself and updating the commit message with this prompt and your explanations.
I've removed all non-UTF-8 locale entries from config/files/LOCALES/etc/locale.gen to maintain consistency with the language-functions changes. This ensures that:
✅ Only UTF-8 locales are available in both configuration files
✅ No legacy ISO-8859-*, CP1251, KOI8-R, GB2312, BIG5, or EUC-JP encodings remain
✅ Consistent UTF-8-only approach across the entire system
✅ Reduced maintenance burden by eliminating obsolete encoding variants
The LOCALES class locale.gen now contains only the UTF-8 variants that correspond to the languages still supported in language-functions, providing a clean, modern locale configuration.
```
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply at anthropic.com>
Commit: e8821e2320688895ab604ff86bac2d2684b112c4
https://github.com/grml/grml-live/commit/e8821e2320688895ab604ff86bac2d2684b112c4
Author: Chris Hofstaedtler <ch at grml.org>
Date: 2025-06-19 (Thu, 19 Jun 2025)
Changed paths:
M config/files/GRMLBASE/etc/grml/language-functions
M config/files/GRMLBASE/usr/sbin/grml-setlang
Log Message:
-----------
language-functions: update French Canadian to UTF-8
Commit: 4ef5f0c9ed4cdc42e8739e02e30150e70effe58b
https://github.com/grml/grml-live/commit/4ef5f0c9ed4cdc42e8739e02e30150e70effe58b
Author: Chris Hofstaedtler <ch at grml.org>
Date: 2025-06-19 (Thu, 19 Jun 2025)
Changed paths:
M config/files/GRMLBASE/usr/bin/grml-lang
M config/files/GRMLBASE/usr/sbin/grml-setlang
M config/files/GRMLBASE/usr/share/grml-autoconfig/autoconfig.functions
Log Message:
-----------
Fix symlink preservation in language configuration tools
At runtime, /etc/default/locale starts as a symlink to /etc/locale.conf (created
by systemd and locales packages). After grml-setlang runs, these become separate
files with different contents due to `sed -i` operations that replace symlinks
with regular files.
**Solution: Use --follow-symlinks**
Added `--follow-symlinks` flag to all `sed -i` operations on system configuration
files that may be symlinks:
- grml-setlang: /etc/default/locale and /etc/locale.gen operations
- grml-lang: /etc/default/keyboard operations
- autoconfig.functions: /etc/inittab and /etc/X11/Xwrapper.config operations
This ensures sed operates on the target file rather than replacing the symlink.
**Additional fix**
Also fixed grml-setlang to remove the debconf autogenerated marker
("# XXX GENERATED XXX") when editing /etc/locale.gen, in addition to
the existing grml-live marker removal.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply at anthropic.com>
Commit: 295c6b638313be2a6d80348e410c73f90152479f
https://github.com/grml/grml-live/commit/295c6b638313be2a6d80348e410c73f90152479f
Author: Chris Hofstaedtler <ch at grml.org>
Date: 2025-06-19 (Thu, 19 Jun 2025)
Changed paths:
M config/package_config/GRMLBASE
M config/package_config/GRML_FULL
M config/package_config/GRML_SMALL
Log Message:
-----------
Move sudo package from GRML_SMALL and GRML_FULL to GRMLBASE
Necessary for grml-lang to work.
Claude Code prompt was:
```
> Please move sudo from GRML_SMALL and GRML_FULL into GRMLBASE, commit the change crediting yourself and documenting the prompt and explanations in the commit message
I've moved the sudo package from GRML_SMALL and GRML_FULL package configurations into GRMLBASE. This change provides several benefits:
✅ Consistent sudo availability - All grml variants (SMALL, FULL) now have sudo through GRMLBASE
✅ Reduced duplication - Eliminates the need to maintain sudo in multiple package lists
✅ Logical placement - sudo is a core system administration tool that belongs in the base configuration
✅ Simplified maintenance - Single location for sudo package management across all variants
This ensures that sudo, being a fundamental system administration utility, is available consistently across all grml distributions while reducing configuration duplication.
```
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply at anthropic.com>
Commit: 407742b86d074c935663c32b75ed7a8f4b5dda27
https://github.com/grml/grml-live/commit/407742b86d074c935663c32b75ed7a8f4b5dda27
Author: Chris Hofstaedtler <ch at grml.org>
Date: 2025-06-19 (Thu, 19 Jun 2025)
Changed paths:
M config/files/GRMLBASE/etc/grml/language-functions
M config/files/GRMLBASE/etc/locale.gen
M config/files/GRMLBASE/usr/bin/grml-lang
M config/files/GRMLBASE/usr/sbin/grml-setlang
M config/files/GRMLBASE/usr/share/zsh/vendor-completions/_grml-lang
M templates/GRML/grml-cheatcodes.txt
Log Message:
-----------
Add Hungarian (hu) keyboard layout support
Claude Code prompt was:
```
> please check if keyboard=hu will work with the new code
Analysis showed that keyboard=hu would NOT work because:
❌ Hungarian (hu) was not supported in language-functions - only these languages were available: at, au, be, bef, beg, bg, br, ch, cf, cn, cs/cz, de, dk/da, dvorak, en, el, es, fi, fr, ga, he/il, ie, it, ja/jp, nl, no/nb/nn, pl, pt, ru, se, sk, sl, tr, tw, uk, us
❌ autoconfig.functions would call grml-lang "hu" but grml-lang would fail with "No valid parameter given" and exit with error code 1
❌ No keyboard configuration would be applied, falling back to default layout
> Please add support for hungarian, per your explanations
I've added comprehensive Hungarian keyboard layout support:
✅ Added hu|hu-utf8 configuration to language-functions with proper Hungarian locale settings:
- LANGUAGE="hu_HU:hu"
- COUNTRY="hu"
- LANG="hu_HU.UTF-8"
- KEYTABLE="hu"
- XKEYBOARD="hu"
- CHARSET="utf8"
- TZ="Europe/Budapest"
✅ Updated grml-lang usage message to include 'hu' in supported values
Now keyboard=hu boot parameter will work correctly:
1. autoconfig.functions detects keyboard=hu
2. Calls grml-lang "hu"
3. grml-lang sources language-functions, finds XKEYBOARD="hu"
4. Configures /etc/default/keyboard with XKBLAYOUT="hu"
5. Applies keyboard changes immediately via udevadm and console-setup
```
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply at anthropic.com>
Commit: 183e3197d4b79c5b70ba4155ebef702bd2a1e111
https://github.com/grml/grml-live/commit/183e3197d4b79c5b70ba4155ebef702bd2a1e111
Author: Chris Hofstaedtler <chris.hofstaedtler at deduktiva.com>
Date: 2025-06-19 (Thu, 19 Jun 2025)
Changed paths:
M templates/GRML/grml-cheatcodes.txt
Log Message:
-----------
grml-cheatcodes: remove misleading "utf8" text
Commit: 8efb4e3abb7d4bdd824105c773c5fc23fc26a881
https://github.com/grml/grml-live/commit/8efb4e3abb7d4bdd824105c773c5fc23fc26a881
Author: Chris Hofstaedtler <chris.hofstaedtler at deduktiva.com>
Date: 2025-06-19 (Thu, 19 Jun 2025)
Changed paths:
M config/files/GRMLBASE/usr/sbin/grml-setlang
Log Message:
-----------
grml-setlang: update texts
Compare: https://github.com/grml/grml-live/compare/27c48adae4cf...8efb4e3abb7d
To unsubscribe from these emails, change your notification settings at https://github.com/grml/grml-live/settings/notifications
More information about the Git-commits
mailing list