[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#973455: keymap dz(la) not supported?



[ Forgot to sent to debian-boot as well, so resending ]


Aurelien Jarno <aurelien@aurel32.net> wrote:
> > The locale settings for the Kabyle language are supposed to be 
> > 	language: Kabyle - kab
> > 	country:  Algeria - DZ
> > 	-> kab_DZ
> > 
> > I have added Kabyle to the localechooser package, and it correctly shows up as
> > a language in the "Choose language" dialog.
> 
> I confirm that the kab_DZ is available in glibc, it has been added in
> version 2.27. You can also check that the date is properly displayed on
> a running Debian system.
> 
> $ LC_ALL=kab_DZ date
> Sed 31 Tub 2020 17:36:48 CET
> 
> > But I have a problem now in the text-based installer:
> > (in graphical installer everything is ok!)
> > While displaying the installer dialogs in Kabyle is fine, it fails to switch
> > the keyboard to the desired "Berber (Latin)" layout.
> 
> Keyboard layout is not something handled by the glibc locales.
> 
> > I also noticed that the installer states to use "kab_DZ" as locale, while
> > in the other languages there is an UTF-8 locale (like "de_DE.UTF-8" for German).
> > Maybe that's the reason for the installer failing to switch keyboard correctly ... ?
> 
> This is correct, because the kab_DZ locale is only available as UTF-8.
> de_DE.UTF-8 exists because the default de_DE locale is ISO-8859-1
> encoded. The same way there is also a de_DE@euro locale defaulting to
> ISO-8859-15.
>  
> > When diagnosing the list of supported locales, I see that in locales package
> > the situation is the same:
> > 
> > ned@t520:~$ grep kab /usr/share/i18n/SUPPORTED 
> > kab_DZ UTF-8
> > ned@t520:~$ 
> > 
> > Only "kab_DZ" shows up in /usr/share/i18n/SUPPORTED, instead of
> > "kab_DZ.UTF-8/UTF-8" like for many other languages.
> 
> This is perfectly normal. There are many other locales without UTF-8 in
> their name, see for example fy_DE or en_NG.
> 
> > Please accept my appologies, if I got something wrong here, but for me it
> > seems there is something wrong/missing... ?
> > Shouldn't UTF-8 be the default for years already? 
> > (Hmm, not for all languages/locales maybe ... ?)
> 
> Yes, that's exactly because UTF-8 is the default for years already that the
> Kabylian locale is only available as kab_DZ.

Ok, thanks for taking the time to confirm, that this seems no issue related
to locales/glibc !
With the above explanation it makes sense so far :-)
So, sorry for the noise.

Which brings me to the next point in the list of packages that might cause 
this, and that being console-setup.
Re-assigning and re-titling accordingly.



@Anton: maybe you could take a look, why switching keyboard to dz(la) does
not work?
I am on the way of adding a new language ("Kabyle") to the installer, and
switching the keyboard layout now fails.
Looking at the other languages/keymaps, and given that the Kabyle translator
proposed "Berber Latin" as keyboard layout, and Algeria (DZ) being the default
country for that language, I came to the assumption, that 
	XKBLAYOUT=dz  # Algeria
	XKBVARIANT=la # Berber (Latin)
might be correct (see 
https://salsa.debian.org/installer-team/console-setup/-/commit/2da68d8e64aac78306e864aea0ea0ea967cf51af )
But unfortunately it does not work.
Setting the above values in /etc/default/keyboard and then executing "/bin/setupcon"
simply does nothing, the keyboard stays unchanged (trying in the text installer!
when using the graphical installer, the keyboard seems to switch correctly, but
then there are other problems.)

Many thanks!


Holger



-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076


Reply to: