logo       


Bug#376404: locale settings within pbuilder sessions: msg#00001

Subject: Bug#376404: locale settings within pbuilder sessions
Package: pbuilder
Version: 0.155
Severity: wishlist

Hi,

I'd like pbuilder to run commands in cleaned locale settings (e.g.
LC_ALL=POSIX) in the chroot environment, because
- in a minimal and clean build environment no locales (besides the
  default) are available
- some programs (e.g. perl) complain about missing locales

My locale settings are the following:
LANG=
LC_CTYPE=en_US.UTF-8
LC_TIME=en_DK.UTF-8
LC_COLLATE=POSIX
LC_ALL=

and I've seen the following warnings while using pbuilder:
...
dh_installdebconf
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_COLLATE = "POSIX",
        LC_TIME = "en_DK.UTF-8",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
...

I've tried setting 'export LC_ALL=POSIX' in my .pbuilderrc, but this
made no difference (while 'export debian_chroot="pbuild$$"' works well).

Testing with 'pbuilder login' or 'pbuilder execute -- /usr/bin/locale'
shows the following settings:
LANG=C
LC_ALL=C

A fix grep shows settings of LC_ALL=C in pbuilder-buildpackage and
pbuilder-modules. Probably this needs to be done at more places.


Andreas

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (30, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-k7
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.3.11     Bootstrap a Debian system
ii  coreutils                     5.96-3     The GNU core utilities
ii  debianutils                   2.16.1     Miscellaneous utilities specific t
ii  debootstrap                   0.3.3      Bootstrap a basic Debian system
ii  gcc                           4:4.0.3-4  The GNU C compiler
ii  wget                          1.10.2-1   retrieves files from the web

Versions of packages pbuilder recommends:
ii  devscripts                    2.9.20     Scripts to make the life of a Debi
ii  fakeroot                      1.5.8      Gives a fake root environment
ii  sudo                          1.6.8p12-4 Provide limited super user privile

-- no debconf information


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe