[Buildd-tools-devel] Bug#429997: Bug#429997: schroot fails with locale message

Roger Leigh rleigh at whinlatter.ukfsn.org
Thu Jun 21 23:40:04 UTC 2007


reopen 429997
severity 429997 important
reassign 429997 locales
merge 29882 429997
thanks

Karl Sackett <krs at hiwaay.net> writes:

[Please can you CC the bug report, so the information doesn't get
lost?  Thanks!]

> On 2007 June 21 at 23:12:09 +0100, Roger Leigh wrote:
>> Your environment is invalid.  Type
>>   locale
>> at a shell prompt, and have a look at the settings.  The locale for
>> one or more of these settings does not exist.  You might want to run
>>   dpkg-reconfigure locales
>> and add the missing locale(s).
>
> No joy.  This is what I got:
>
> miranda$ sudo dpkg-reconfigure locales
> Generating locales (this might take a while)...
>   en_US.UTF-8... done
>   en_DK.UTF-8... done
> Generation complete.
> miranda$ locale
> LANG=C
> LC_CTYPE="C"
> LC_NUMERIC="C"
> LC_TIME=en_DK.UTF-8
> LC_COLLATE=C
> LC_MONETARY="C"
> LC_MESSAGES="C"
> LC_PAPER="C"
> LC_NAME="C"
> LC_ADDRESS="C"
> LC_TELEPHONE="C"
> LC_MEASUREMENT="C"
> LC_IDENTIFICATION="C"
> LC_ALL=
> miranda$ schroot
> E: locale::facet::_S_create_c_locale name not valid
> miranda$ LANG=C; schroot
> E: locale::facet::_S_create_c_locale name not valid
>
> What should I check next?

Interesting!  I tried the above locale settings with schroot 1.0.5 on
my sid system (with the appropriate locales generated), and I get:

% locale
LANG=C
LANGUAGE=en_GB:en_US:en
LC_CTYPE=C
LC_NUMERIC=C
LC_TIME=en_DK.UTF-8
LC_COLLATE=C
LC_MONETARY=C
LC_MESSAGES=C
LC_PAPER=C
LC_NAME=C
LC_ADDRESS=C
LC_TELEPHONE=C
LC_MEASUREMENT=C
LC_IDENTIFICATION=C
LC_ALL=
% schroot -V
E: locale::facet::_S_create_c_locale name not valid
% LC_ALL=C schroot -V | head -n 1
schroot (Debian sbuild) 1.0.5 (27 Jan 2007)
% LC_TIME=en_GB.UTF-8 schroot -V | head -n 1
E: locale::facet::_S_create_c_locale name not valid
% LC_TIME=en_GB schroot -V | head -n 1
E: locale::facet::_S_create_c_locale name not valid
% LC_TIME= schroot -V | head -n 1
schroot (Debian sbuild) 1.0.5 (27 Jan 2007)
% LC_TIME=C schroot -V | head -n 1
schroot (Debian sbuild) 1.0.5 (27 Jan 2007)

It looks like the locale system is not functioning properly.  I can
even reproduce it with my locale setup:

% export | egrep '(LANG|LC_)'
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en_US:en
% locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en_US:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
% schroot -V | head -n 1
E: locale::facet::_S_create_c_locale name not valid
% LANG="de_DE.UTF-8" schroot -V | head -n 1
E: locale::facet::_S_create_c_locale name not valid
% LANG="" schroot -V | head -n 1
schroot (Debian sbuild) 1.0.5 (27 Jan 2007)
% LANG="C" schroot -V | head -n 1
schroot (Debian sbuild) 1.0.5 (27 Jan 2007)


Note that the version in unstable does still work, since it copes with
the failure.  But it won't fix the root cause: this isn't a bug within
the schroot program; it's an issue with the system locales (or
possibly in libc/libstdc++).  I'm reassigning to the locales package
where a similar bug (#429882) has already been filed.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20070622/529d2bff/attachment-0001.pgp 


More information about the Buildd-tools-devel mailing list