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

Re: tests failing without specific locales



Hi Paul,

thanks for your quick answer.

On Thu, Jun 09, 2022 at 02:28:48PM +0800, Paul Wise wrote:
> On Thu, 2022-06-09 at 07:28 +0200, Marc Haber wrote:
> > I am working on a package written in python that thankfully has a
> > test suite. Unfortunately, one of the tests fails if the en_GB.UTF-8
> > locale is not present.
> 
> Any idea why the test requires that locale? Tried C.UTF-8?

I havent looked at the test in detail, I have not yet decided whether
the package would be helpful in Debian. It looks like the test has
en_GB.UTF-8 hardcoded, sets the locale to that value and then fails
it it's not there. Most likely it's the home locale of the dev.

> > How do I solve this? Do I need to build-depend on the locales-all
> > package or is there a less ugly way?
> 
> I think that using locales-all is currently the only way to ensure that
> a specific locale other than C/C.UTF-8 is installed.

And build-depending on that is not bad in some way?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421


Reply to: