[Reportbug-maint] Bug#546276: reportbug: set locale to C before running package-specific info script

Alexander Galanin al at galanin.nnov.ru
Tue Sep 15 05:36:44 UTC 2009


On Tue, 15 Sep 2009 07:28:30 +0200
Sandro Tosi <morph at debian.org> wrote:

> Hello Alexander
> 
> On Sat, Sep 12, 2009 at 08:51, Alexander Galanin <al at galanin.nnov.ru> wrote:
> > Package: reportbug
> > Version: 4.6
> > Severity: normal
> >
> > My locale is ru_RU.UTF-8. When I run reportbug to report an issue in
> > aptitude, it generates e-mail with text on russian like this:
> >
> >    ...
> >    -- Package-specific info:
> >    aptitude 0.4.11.11 скомпилировано в Aug  3 2009 16:22:21
> >    Компилятор: g++ 4.3.3
> >    Скомпилировано с помощью:
> >      apt версии 4.8.0
> >      Версия NCurses 5.7
> >      Версия libsigc++: 2.0.18
> >      Поддержка ept включена.
> >    ...
> >
> > I think that localized information is not useful in a bug report, so
> > package-specific information script should be called with "C" locale.
> 
> can you confirm that
> 
> $ LANG=C /usr/share/reportbug/handle_bugscript /usr/share/bug/aptitude
> /tmp/546276
> $ cat /tmp/546276
> 
> does what you request?

No. Setting LANG variables does not changes behaviour (message still
printed on russian). Changing LC_MESSAGES to C does what I request.
But I think that is is better to set all locale variables to C or set
LC_ALL=C to override all locales in one shot.

-- 
Alexander Galanin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20090915/41ddfefe/attachment.pgp>


More information about the Reportbug-maint mailing list