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

Bug#946326: python3-reportbug: reportbug runs bugscript in "C" locale



On Sat, Dec 7, 2019 at 3:51 PM Nis Martensen <nis.martensen@web.de> wrote:
>
> On 07 Dec 2019 Changwoo Ryu wrote:
> >
> > reportbug seems to run bugscript in "C" locale. In /usr/lib/python3/dist-
> > packages/reportbug/utils.py:
> >
> >     rc = runner('LC_ALL=C %s %s %s' % (handler, pipes.quote(bugscript),
> > pipes.quote(filename)))
> >
> >
> > It prevents the ibus bugscript from getting "locale" command result. For
> > example: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946201#5
> >
> > I understand that running locale dependent bugscript can be often buggy and
> > confusing, but some bugscripts want the locale dependent behavior. I think
> > settings locale settings should be up to the individual bugscript authors.
>
> When programs called by bugscripts provide output in the user's locale,
> this can make the information unintelligible to the debian maintainer.
> Please see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546276
> for why the "LC_ALL=C" was introduced ten years ago. I am not sure that
> reverting this is a good idea. It should probably be documented in
> README.developers, so bugscript authors are aware of it.

i've just did that

> Note that reportbug already includes the most important locale
> information in all bug reports by default. In your example, it is this
> line in the "System Information" section of the report:
>   Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
> LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)

mentioning this too

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
Twitter: https://twitter.com/sandrotosi


Reply to: