[DRE-maint] Bug#690572: localization takes $LANG into account, but ignores $LC_MESSAGES

Hleb Valoshka 375gnu at gmail.com
Tue Sep 3 20:08:51 UTC 2013


On Sun, Mar 17, 2013 at 12:27:35AM +0100, Jérémy Bobbio wrote:

> The bug really lies in ruby-gettext which does not currently parse
> LC_MESSAGES at all. It should, just like GNU gettext.

Are you sure? GNU gettext uses LC_MESSAGES only indirectly, calling
_nl_locale_name (see intl/dcigettext.c), but it never checks its value by
itself.

[Now I understand that my «fix» for #520181 which introduced this bug was
incorrect (and what even worse it's integrated by upstream now).]

But as I said above the real problem is in ruby-locale because the latter does
not distinguish between «language» and «locale», (may be) because its aim to be
the GCD for the 4 different plaform, and, at least, in web there no difference
between «language» and «locale». So to properly fix this (and #520181) we (or
ruby-gettext/locale upstream team) should 1) change ruby-locale to better
reflect POSIX locale; 2) patch ruby-gettet to use new ruby-locale's API.

It seams to me that p.1 will cause a great breakage of ruby-locale internals.

(Jérémy, please, if you forward bugs to upstream report them to github
https://github.com/ruby-gettext/locale/issues not to Kou's mail)



More information about the Pkg-ruby-extras-maintainers mailing list