Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137373 - unicode and locale broken after latest baselayout+glibc upgrade
Summary: unicode and locale broken after latest baselayout+glibc upgrade
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-20 07:12 UTC by crusaderky
Modified: 2006-06-20 13:08 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 crusaderky 2006-06-20 07:12:19 UTC
I can't be 100% sure, but I *think* this has happened since I updated baselayout to version 1.11.14-r8 and glibc to 2.3.6-r4.


I have USE="unicode" in make.conf (and everything compiled with it), UNICODE="yes" in /etc/rc.conf and LC_ALL=it_IT.utf8. All my reiserfs filesystem is in UTF-8, and I didn't have any problem at all until today.

Today, I noticed disfunctions in nautilus, gnome-terminal and konqueror.

1)create an empty file called "foo"
2)using nautilus or konqueror, try and rename it to "fo
Comment 1 crusaderky 2006-06-20 07:12:19 UTC
I can't be 100% sure, but I *think* this has happened since I updated baselayout to version 1.11.14-r8 and glibc to 2.3.6-r4.


I have USE="unicode" in make.conf (and everything compiled with it), UNICODE="yes" in /etc/rc.conf and LC_ALL=it_IT.utf8. All my reiserfs filesystem is in UTF-8, and I didn't have any problem at all until today.

Today, I noticed disfunctions in nautilus, gnome-terminal and konqueror.

1)create an empty file called "foo"
2)using nautilus or konqueror, try and rename it to "foào" (f,o,accented a,o)

in konqueror, the file is renamed to fo??o (f,o,two squares,o)
in nautilus, it says "the item could not be renamed. The name "foào" is incorrect."

Already existing unicode file names are displayed correctly.

I've noticed disfunctions in gnome-terminal, too, when trying to rename an already existing unicode file.



Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig digest distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://194.117.143.70 http://pandemonium.tiscali.de/pub/gentoo/ ftp://194.117.143.72/mirrors/gentoo"
LC_ALL="it_IT.utf8"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X X509 a52 aac alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr chroot cjk cli crypt cscope cups curl dbus dga dri dts dvb dvd dvdr dvdread emboss encode erandom exif fam fbcon ffmpeg firefox flac flash foomaticdb fortran freetype gd gdbm ggi gif ginac glut gnutls gpm gtk gtk2 gtkhtml guile hal idn imagemagick imap imlib innodb ipv6 isdnlog java javascript jikes jpeg kerberos krb4 lcms ldap libcaca libg++ libwww live lzo mad matroska mcal md5sum memlimit mikmod mmx mmxext mng motif mozsvg mp3 mpeg mpi musepack mysql ncurses network nls nptl nsplugin nvidia odbc offensive ogg opengl pam parse-clocks pcre pdflib perl pic plotutils png ppds pppd prelude python qhull qt quicktime readline real reflection rtc samba scanner sdl session skey slp sndfile snmp socks5 speex spell spl sqlite sse ssl svg tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vorbis win32codecs wmf wxwindows xml xml2 xorg xosd xprint xv xvid xvmc yaz zlib elibc_glibc kernel_linux linguas_it userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 crusaderky 2006-06-20 08:54:01 UTC
for my folder ~/documents/contabilit
Comment 3 crusaderky 2006-06-20 08:54:01 UTC
for my folder ~/documents/contabilità/, I read "contabilità" (correct accented a) in nautilus, and "contabilità " (uppercase A tilde, plus space) in Openoffice 2. I used to see view it correctly in both.
Comment 4 crusaderky 2006-06-20 09:24:33 UTC
and, last but not least, my locale for gnome has fallen back to english!

$ echo $LANG

$ echo $LC_ALL
it_IT.utf8
Comment 5 crusaderky 2006-06-20 09:26:03 UTC
the locale for KDE is still italian, though.
Comment 6 SpanKY gentoo-dev 2006-06-20 11:19:37 UTC
has nothing to do with baselayout
Comment 7 SpanKY gentoo-dev 2006-06-20 11:20:03 UTC
run `locale-gen -l` and post the output here
Comment 8 crusaderky 2006-06-20 11:43:56 UTC
# locale-gen -l
en_US.ISO-8859-1
en_US.UTF8
it_IT.ISO-8859-15
it_IT.UTF8
Comment 9 SpanKY gentoo-dev 2006-06-20 12:19:12 UTC
and what does this show:
LC_ALL=it_IT.UTF8 locale -a
Comment 10 crusaderky 2006-06-20 12:36:59 UTC
# LC_ALL=it_IT.UTF8 locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US
en_US.utf8
it_IT
it_IT.utf8
Comment 11 crusaderky 2006-06-20 12:47:44 UTC
fixed.

1)removed /etc/locales.build
2)added the following to /etc/locale.gen:
en_US ISO-8859-1
en_US.UTF-8 UTF-8
it_IT ISO-8859-1
it_IT.UTF-8 UTF-8
3)changed LC_ALL in /etc/env.d/02locale from it_IT.utf8 to it_IT.UTF-8
4)run `locale-gen`
5)rebooted

now everything seems ok. So it seems that this happened because of some deprecated stuff that now is completely broken, but the users haven't been warned about it?
Comment 12 SpanKY gentoo-dev 2006-06-20 12:48:38 UTC
then run `locale-gen` and try again
Comment 13 crusaderky 2006-06-20 12:56:37 UTC
I said, now it's fixed
Comment 14 SpanKY gentoo-dev 2006-06-20 13:08:05 UTC
we posted our comments at the same time :P

i dont know what code path you took, but if you dont have locale.gen configured, the locale-gen will import previous settings from locales.build