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

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



Hi,

On 2020-11-02 00:23, Holger Wansing wrote:
> 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.

I have just seen you patch to localechooser:

https://salsa.debian.org/installer-team/localechooser/-/commit/e7c432b8e7579511ff24ca554940b23cd0a9d482#97d66a6f96fa0a78b8cc86e86b52a0144da74883_54_53

I think the locale entry is wrong, as discussed above, it should be
kab_DZ instead of kab_DZ.UTF-8. Just like then entries around are ks_IN
or km_KH.

Regards,
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: