Bug#1011254: The UDEB package "localechooser" contains probably some buggy source code in "05localechooser" file
- To: Philip Hands <phil@hands.com>
- Cc: 1011254@bugs.debian.org
- Subject: Bug#1011254: The UDEB package "localechooser" contains probably some buggy source code in "05localechooser" file
- From: Jmkr <jmkrnet@email.cz>
- Date: Fri, 17 Jun 2022 16:04:56 +0000
- Message-id: <[🔎] 196b3d96-9423-3dd0-aa52-b9dded27cdb8@email.cz>
- Reply-to: Jmkr <jmkrnet@email.cz>, 1011254@bugs.debian.org
- In-reply-to: <878rqtnb8d.fsf@hands.com>
- References: <d50c643c-b6e2-1b14-cfb8-4becbb4e4b18@email.cz> <d50c643c-b6e2-1b14-cfb8-4becbb4e4b18@email.cz> <87wnehn0ei.fsf@hands.com> <ad0bbd9e-8bd3-d5e5-9851-f4e4b14f650f@msgid.tls.msk.ru> <87tu9lmwix.fsf@hands.com> <87ilq1mljb.fsf@hands.com> <87ilq1mljb.fsf@hands.com> <5ce8a284-23c5-24a8-103c-6837b246cbcf@email.cz> <878rqtnb8d.fsf@hands.com> <d50c643c-b6e2-1b14-cfb8-4becbb4e4b18@email.cz>
Sorry for the delay, I had to do some work and then forgot that I
planned to reply to this bug.
> Philip Hands <phil@hands.com> writes:
> ...
>
> Actually, given that we don't care what's in the first field at that
> point, and it's already matched the start of the country code, I think
> this ought to work as well:
>
> "/^${L%%_*}/"'{s/^[^;]*;\([0-9]\);.*/\1/p;q}'
Yes, it works perfectly when I tested the "sed" command both in a
terminal and also in my customized DI in the
"./usr/lib/post-base-installer.d/05localechooser" file.
Although, I did not test the generated ISO and whether the whole locale
chooser mechanism now works as intended with locales that have level 3+
(i.e. if DI actually creates the "/target/root/.profile" file for such
locales). Since I don't use such locales on my systems it would be
difficult for me to test this. I don't know the languages, so I probably
would not be able to finish the DI using one of these languages:).
Cheers, Jmkr
Reply to: