Bug 30300 - find-lang не поддерживает локаль "uz@Latn" и устаревшую "sr@Latn"
Summary: find-lang не поддерживает локаль "uz@Latn" и устаревшую "sr@Latn"
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: sisyphus_check (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-10 11:15 MSK by Andrey Cherepanov
Modified: 2020-08-31 00:37 MSK (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Cherepanov 2014-09-10 11:15:35 MSK
Локалей с "@" насчитывается 14.
$ ls -1 /usr/share/locale | grep @ | wc -l
14

Пора сделать поддержку символа "@" в find-lang.
Comment 1 Michael Shigorin 2014-09-12 02:52:40 MSK
Не факт, что стоит поддерживать диверсии вроде вынесенной в заголовок.
Comment 2 Dmitry V. Levin 2014-09-12 03:01:57 MSK
(In reply to comment #1)
> Не факт, что стоит поддерживать диверсии вроде вынесенной в заголовок.

Обычно пишут @latin, не факт, что @Latn в glibc поддерживается.  К слову,
$ grep -hF '@Latn' /ALT/Sisyphus/{noarch,x86_64}/base/contents_index | sort
/usr/share/doc/HTML/sr@Latn	kde-common
/usr/share/doc/HTML/sr@Latn/common	kde-common
/usr/share/kde/doc/HTML/sr@Latn	kde-common
/usr/share/kde/doc/HTML/sr@Latn/common	kde-common
/usr/share/kde/locale/sr@Latn	kde-common
/usr/share/kde/locale/sr@Latn	krusader
/usr/share/kde/locale/sr@Latn/LC_MESSAGES	kde-common
/usr/share/kde/locale/sr@Latn/LC_MESSAGES	krusader
/usr/share/kde/locale/sr@Latn/LC_MESSAGES/gwenview.mo	gwenview-i18n
/usr/share/kde/locale/sr@Latn/LC_MESSAGES/krusader.mo	krusader
/usr/share/kde/locale/sr@Latn/LC_MESSAGES/ktorrent.mo	ktorrent
/usr/share/kde/locale/sr@Latn/LC_MESSAGES/kwlan.mo	kwlan
/usr/share/kde/locale/sr@Latn/LC_MESSAGES/libkexif.mo	libkexif
/usr/share/kde/locale/sr@Latn/LC_MESSAGES/libkipi.mo	libkipi
/usr/share/kde/locale/sr@Latn/LC_SCRIPTS	kde-common
/usr/share/kde4/doc/HTML/sr@Latn	kde-common
/usr/share/kde4/doc/HTML/sr@Latn/common	kde-common
/usr/share/kde4/locale/sr@Latn	kde-common
/usr/share/kde4/locale/sr@Latn/LC_MESSAGES	kde-common
/usr/share/kde4/locale/sr@Latn/LC_SCRIPTS	kde-common
/usr/share/locale/sr@Latn	glibc-locales
/usr/share/locale/sr@Latn/LC_MESSAGES	glibc-locales
/usr/share/locale/sr@Latn/LC_MESSAGES/firestarter.mo	firestarter
/usr/share/locale/sr@Latn/LC_MESSAGES/gftp.mo	gftp-common
/usr/share/locale/sr@Latn/LC_MESSAGES/gossip.mo	gossip
/usr/share/locale/sr@Latn/LC_MESSAGES/k3b.mo	k3b-i18n
/usr/share/locale/sr@Latn/LC_MESSAGES/libk3b.mo	k3b-i18n
/usr/share/locale/sr@Latn/LC_MESSAGES/libk3bdevice.mo	k3b-i18n
/usr/share/locale/sr@Latn/LC_MESSAGES/planner.mo	planner
/usr/share/locale/sr@Latn/LC_MESSAGES/pyblio.mo	pyblio
/usr/share/locale/sr@Latn/LC_MESSAGES/sawfish.mo	sawfish
/usr/share/locale/sr@Latn/LC_MESSAGES/soundconverter.mo	soundconverter
/usr/share/locale/sr@Latn/LC_MESSAGES/video.dvdrip.mo	dvdrip
/usr/share/locale/sr@Latn/LC_MESSAGES/xdg-user-dirs.mo	xdg-user-dirs
/usr/share/locale/sr@Latn/LC_TIME	glibc-locales
/usr/share/perl5/Video/DVDRip/splash.sr@Latn.png	dvdrip
/usr/share/qupzilla/locale/uz@Latn.qm	qupzilla
Comment 3 Andrey Cherepanov 2016-03-17 19:04:23 MSK
Однако /usr/share/locale/sr@Latn/LC_MESSAGE есть, а при сборке

warning: Installed (but unpackaged) file(s) found:
    ...
    /usr/share/locale/sr@Latn/LC_MESSAGES/libgnomecups.mo
Comment 4 Ivan Zakharyaschev 2020-08-30 18:07:38 MSK
(In reply to Andrey Cherepanov from comment #3)
> Однако /usr/share/locale/sr@Latn/LC_MESSAGE есть, а при сборке
> 
> warning: Installed (but unpackaged) file(s) found:
>     ...
>     /usr/share/locale/sr@Latn/LC_MESSAGES/libgnomecups.mo

В gnome перешли на sr@latin -- https://bugzilla.gnome.org/show_bug.cgi?id=481423#c5 .

Может быть, пора запретить sr@Latn (с подсказкой про sr@latin) в sisyphus_check?

$ fgrep /usr/share/locale/sr@Latn /ALT/Sisyphus/{noarch,x86_64}/base/contents_index
/ALT/Sisyphus/noarch/base/contents_index:/usr/share/locale/sr@Latn/LC_MESSAGES/pix.mo	pix-data
/ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn	glibc-locales
/ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/LC_MESSAGES	glibc-locales
/ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/LC_MESSAGES/drwright.mo	drwright
/ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/LC_MESSAGES/firestarter.mo	firestarter
/ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/LC_MESSAGES/gossip.mo	gossip
/ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/LC_TIME	glibc-locales
$
Comment 5 Dmitry V. Levin 2020-08-30 23:52:18 MSK
(In reply to Ivan Zakharyaschev from comment #4)
> (In reply to Andrey Cherepanov from comment #3)
> > Однако /usr/share/locale/sr@Latn/LC_MESSAGE есть, а при сборке
> > 
> > warning: Installed (but unpackaged) file(s) found:
> >     ...
> >     /usr/share/locale/sr@Latn/LC_MESSAGES/libgnomecups.mo
> 
> В gnome перешли на sr@latin --
> https://bugzilla.gnome.org/show_bug.cgi?id=481423#c5 .
> 
> Может быть, пора запретить sr@Latn (с подсказкой про sr@latin) в
> sisyphus_check?
> 
> $ fgrep /usr/share/locale/sr@Latn
> /ALT/Sisyphus/{noarch,x86_64}/base/contents_index
> /ALT/Sisyphus/noarch/base/contents_index:/usr/share/locale/sr@Latn/
> LC_MESSAGES/pix.mo	pix-data
> /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn
> glibc-locales
> /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/
> LC_MESSAGES	glibc-locales
> /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/
> LC_MESSAGES/drwright.mo	drwright
> /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/
> LC_MESSAGES/firestarter.mo	firestarter
> /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/
> LC_MESSAGES/gossip.mo	gossip
> /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/LC_TIME
> glibc-locales
> $

Я бы сказал, что правильным является тот вариант, который в glibc, в данном случае sr@Latn.
Comment 6 Ivan Zakharyaschev 2020-08-31 00:12:48 MSK
(In reply to Dmitry V. Levin from comment #6)
> (In reply to Ivan Zakharyaschev from comment #4)
> > (In reply to Andrey Cherepanov from comment #3)
> > > Однако /usr/share/locale/sr@Latn/LC_MESSAGE есть, а при сборке
> > > 
> > > warning: Installed (but unpackaged) file(s) found:
> > >     ...
> > >     /usr/share/locale/sr@Latn/LC_MESSAGES/libgnomecups.mo
> > 
> > В gnome перешли на sr@latin --
> > https://bugzilla.gnome.org/show_bug.cgi?id=481423#c5 .
> > 
> > Может быть, пора запретить sr@Latn (с подсказкой про sr@latin) в
> > sisyphus_check?
> > 
> > $ fgrep /usr/share/locale/sr@Latn
> > /ALT/Sisyphus/{noarch,x86_64}/base/contents_index
> > /ALT/Sisyphus/noarch/base/contents_index:/usr/share/locale/sr@Latn/
> > LC_MESSAGES/pix.mo	pix-data
> > /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn
> > glibc-locales
> > /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/
> > LC_MESSAGES	glibc-locales
> > /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/
> > LC_MESSAGES/drwright.mo	drwright
> > /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/
> > LC_MESSAGES/firestarter.mo	firestarter
> > /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/
> > LC_MESSAGES/gossip.mo	gossip
> > /ALT/Sisyphus/x86_64/base/contents_index:/usr/share/locale/sr@Latn/LC_TIME
> > glibc-locales
> > $
> 
> Я бы сказал, что правильным является тот вариант, который в glibc, в данном
> случае sr@Latn.

Так sr@latin в glibc тоже есть. И заполнен пакетами гораздо больше (аналогичный grep по contents_index).

$ rpm -qp /ALT/Sisyphus/x86_64/RPMS.classic/glibc-locales-2.30-alt2.x86_64.rpm -l | fgrep sr@
/usr/share/locale/sr@Latn
/usr/share/locale/sr@Latn/LC_MESSAGES
/usr/share/locale/sr@Latn/LC_TIME
/usr/share/locale/sr@ije
/usr/share/locale/sr@ije/LC_MESSAGES
/usr/share/locale/sr@ije/LC_TIME
/usr/share/locale/sr@latin
/usr/share/locale/sr@latin/LC_MESSAGES
/usr/share/locale/sr@latin/LC_TIME
$
Comment 7 Ivan Zakharyaschev 2020-08-31 00:14:54 MSK
(In reply to Ivan Zakharyaschev from comment #7)

> И заполнен пакетами гораздо больше
> (аналогичный grep по contents_index).

$ fgrep /usr/share/locale/sr@latin /ALT/Sisyphus/{noarch,x86_64}/base/contents_index | wc -l
702
Comment 8 Dmitry V. Levin 2020-08-31 00:37:36 MSK
(In reply to Ivan Zakharyaschev from comment #7)
> (In reply to Dmitry V. Levin from comment #6)
> > Я бы сказал, что правильным является тот вариант, который в glibc, в данном
> > случае sr@Latn.
> 
> Так sr@latin в glibc тоже есть. И заполнен пакетами гораздо больше
> (аналогичный grep по contents_index).
> 
> $ rpm -qp
> /ALT/Sisyphus/x86_64/RPMS.classic/glibc-locales-2.30-alt2.x86_64.rpm -l |
> fgrep sr@
> /usr/share/locale/sr@Latn
> /usr/share/locale/sr@Latn/LC_MESSAGES
> /usr/share/locale/sr@Latn/LC_TIME
> /usr/share/locale/sr@ije
> /usr/share/locale/sr@ije/LC_MESSAGES
> /usr/share/locale/sr@ije/LC_TIME
> /usr/share/locale/sr@latin
> /usr/share/locale/sr@latin/LC_MESSAGES
> /usr/share/locale/sr@latin/LC_TIME
> $

Тогда я предлагаю в glibc ничего на эту тему не менять.