]> git.ipfire.org Git - thirdparty/systemd.git/commit
locale: when no xvariant match select the entry with an empty xvariant 27355/head
authorFranck Bui <fbui@suse.com>
Thu, 20 Apr 2023 07:47:35 +0000 (09:47 +0200)
committerFranck Bui <fbui@suse.com>
Wed, 26 Apr 2023 06:15:17 +0000 (08:15 +0200)
commitb35f71ac1a8b8669cf399711a0396d78581b89eb
tree1e8452b70a66ca270eed53f1ec3aca97c374bea5
parentc821ad7d607b21e807c56d9fa8843821c0fd383e
locale: when no xvariant match select the entry with an empty xvariant

When doing a conversion and the specified 'xc->xvariant' has no match, select
the x11 layout entry with a matching layout and an empty xvariant if such entry
exists. It's still better than no conversion at all.
src/locale/localed-util.c
src/locale/test-localed-util.c
test/units/testsuite-73.sh