[Rpm-maint] [rpm-software-management/rpm] `find-lang.sh --generate-subpackages` generated package name might contain illegal letter '@' (Issue #4180)

laokz notifications at github.com
Wed Apr 15 11:12:26 UTC 2026


laokz created an issue (rpm-software-management/rpm#4180)

When using rpmbuild to build a package, if the package installed a locale which name containing '@' letter, like,
 ```
%{buildroot}/usr/share/locale/be at latin/LC_MESSAGES/abcd.mo
```
`find-lang.sh --generate-subpackages` generated subpackage name would also containing '@'.  Then rpmbuild would complain that `error: line 17: Illegal char '@' (0x40) in: %package langpack-be at latin`.

[find-lang.sh](https://github.com/rpm-software-management/rpm/blob/master/scripts/find-lang.sh#L304) has this code to deal with subpackage name,
```
LANG=`echo $LOCALE|sed 's/_.*//'`
```
It puts all '_territory' variants of the same lang into one $LANG package. Could we also treat '@modifier' variants like this?

I've referenced the folloing infomation.
- https://wiki.archlinux.org/title/Locale
- https://unix.stackexchange.com/questions/720268/what-is-modifier-in-locale-name

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4180
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/4180 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260415/3afd3b47/attachment.htm>


More information about the Rpm-maint mailing list