Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383479 - app-shells/bash-4.1_p9: /bin/sh: warning: setlocale: LC_ALL: cannot change locale
Summary: app-shells/bash-4.1_p9: /bin/sh: warning: setlocale: LC_ALL: cannot change lo...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-18 11:28 UTC by VSC55
Modified: 2011-09-19 19:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description VSC55 2011-09-18 11:28:56 UTC
If the folder "/usr" is on a different partition "/" for example:
/dev/hda1  /       ext3
/dev/hda5  /usr    ext3

On startup and shutdown system "/usr" not mounted displays this error message: 
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (es_ES@euro)

Reproducible: Always

Steps to Reproduce:
1. Start the PC
2. We select our kernel in the GRUB menu.
3. Loads the kernel.
4. System begins to boot.
5. Displays error messages.
6. The system mounts fstab partitions.
7. You do not go more error messages.

1. We turn off the PC
2. It all ok shutdown process.
3. Unmount the partitions.
4. Begins to show the error messages.
5. Turn off the PC.
Actual Results:  
Displays error messages, then starts all normal.
The system working ok.

Expected Results:  
No show error startup and shutdwon system.

------------------------------------------------------------------------------

# emerge -va app-shells/bash sys-libs/glibc
[ebuild   R    ] app-shells/bash-4.1_p9  USE="net nls -afs -bashlogger -examples -mem-scramble -plugins -vanilla" 6,458 kB
[ebuild   R    ] sys-libs/glibc-2.12.2  USE="nls profile -debug -gd -glibc-omitfp (-hardened) (-multilib) (-selinux) -vanilla" 16,009 kB

------------------------------------------------------------------------------

#vi /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8
es_ES ISO-8859-15
es_ES@euro ISO-8859-15
es_ES.UTF-8 UTF-8

-----------------------------------------------------------------------

#emerge --info
Portage 2.1.10.11 (default/linux/x86/10.0/desktop/gnome, gcc-4.3.4, glibc-2.12.2-r0, 2.6.39-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-i686-AMD_Athlon-TM-_XP_2400+-with-gentoo-2.0.3
Timestamp of tree: Fri, 16 Sep 2011 22:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.3.4, 4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo Gentoo-Cerebelum-Net
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org/ ftp://ftp.caliu.info/pub/gentoo/ http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="es_ES@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib acl acpi alsa apache2 apic asf audiofile avahi bash-completion beagle berkdb branding bzip2 cairo cdda cdparanoia cdr cli cmov codecs consolekit cracklib crypt cups cx8 cxx dbus dbx de directfb divx4linux dmraid dmx dri dts dvd dvdr dvdread dvi eds emboss encode esd evo exif fam fat fbcon firefox flac foomatic foomaticdb fortran fpu ftp fxsr gdbm gdu gif glut gnome gnome-keyring gpm gstreamer gtk gtk2 gtkhtml iconv imagemagick imap jabber jack java javascript jpeg lcms ldap libcaca libnotify lm_sensors mad maildir matroska mca mce mdadm mmx mmxext mng modules mono mp3 mp4 mpeg msr mtrr mudflap mysql nas nautilus ncurses netboot network nls nntp nocd nptl nptlonly ntfs odbc ogg openal opengl openmp oss pae pam pango pat pcre pdf perl pge php png pni policykit ppds pppd profile pse pse36 python qt3support quicktime readline samba sasl scanner sdl sep session skey slp smartcard speex spell sse ssl startup-notification svg svga syscall sysfs tcltk tcpd theora tiff tk truetype tsc udev unicode usb v41 varbis vcd vhosts vidix vme vorbis widescreen win32codecs x264 x86 xcb xcomposite xine xinerama xml xmms xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack version vhost_alias asis authn_alias authn_anon cern_meta cgi substitute" APACHE2_MPMS="itk" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa none" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2011-09-19 01:35:53 UTC
setting LC_ALL in /etc/profile* is wrong
Comment 2 VSC55 2011-09-19 19:25:25 UTC
(In reply to comment #1)
> setting LC_ALL in /etc/profile* is wrong

# vi /etc/profile.csh
setenv LANG 'es_ES.UTF-8'
setenv LANGUAGE 'es_ES.utf8'
setenv LC_ALL 'es_ES.utf8'

-----------------------------------------------------------------

# vi /etc/profile.env
export LC_ALL='es_ES@euro'
export LC_LANG='es_ES@euro'