Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317063 - sys-libs/glibc-2.10.1-r1 can't generate the C.utf8 locale
Summary: sys-libs/glibc-2.10.1-r1 can't generate the C.utf8 locale
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-24 23:05 UTC by Etaoin Shrdlu
Modified: 2010-04-30 19:46 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 Etaoin Shrdlu 2010-04-24 23:05:57 UTC
As the summary says, I'm trying to generate the C.utf8 locale. I added a line

C.UTF-8 UTF-8

into /etc/locale.gen, but then running locale-gen tells me:

# locale-gen
 * Generating 8 locales (this might take a while) with 1 jobs
 *  (1/8) Generating C.UTF-8 ...
cannot open locale definition file `C': No such file or directory                                                                                 [ !! ]
 *  (2/8) Generating en_US.UTF-8 ...

the other locales are generated successfully. Now, I'd like to know if I'm doing something wrong, or if the C.utf8 locale is supported in Gentoo.
Thanks in advance.

Reproducible: Always




# emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10 x86_64)
=================================================================                               
System uname: Linux-2.6.31-gentoo-r10-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-1.12.13
Timestamp of tree: Sat, 24 Apr 2010 10:15:01 +0000                                                
app-shells/bash:     4.0_p37                                                                      
dev-java/java-config: 2.1.10                                                                      
dev-lang/python:     2.6.4-r1                                                                     
dev-util/cmake:      2.6.4-r3                                                                     
sys-apps/baselayout: 1.12.13                                                                      
sys-apps/sandbox:    1.6-r2                                                                       
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo                 http://ftp.snt.ipv6.utwente.nl/pub/os/linux/gentoo                 http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
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.europe.gentoo.org/gentoo-portage"
USE="64bit X a52 aalib acl acpi alsa amd64 arts avi berkdb branding bzip2 bzlib cairo caps cdr chm cracklib crypt curl dga dio djvu dlloader dri dvd dvdr dvdread encode exceptions exif fam ffmpeg font-server ftp gif glib gtk gtk2 handbook idn imlib ipv6 jabber java jpeg kde kdehiddenvisibility kdexdeltas mad maildir mbox memlimit midi mime mmap mng motif mozbranding mp3 mpeg multilib musepack ncurses nls nocd nptl nptlonly nsplugin offensive ogg oggvorbis opengl pam pcntl pcre pdf pdflib perl png pnp posix ps python qt qt3 qt3support qt4 rdesktop rdp readline sdl shared sharedmem sockets sqlite ssl svg sysvipc tcl tcltk threads tiff tk truetype truetype-fonts trusted type1-fonts unicode usb userlocales vnc vorbis wavelan wireshark wmf xcomposite xine xml xml2 xmlrpc xorg xpm xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2010-04-25 00:04:47 UTC
C locale is something different than what you think it is.

Read http://www.opengroup.org/onlinepubs/7990989775/xbd/locale.html.
Comment 2 Etaoin Shrdlu 2010-04-25 10:41:27 UTC
(In reply to comment #1)
> C locale is something different than what you think it is.
> 
> Read http://www.opengroup.org/onlinepubs/7990989775/xbd/locale.html.

I know that document (btw, that is an old version; the latest one is at

http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html )

Ok, so you've probably never heard of the C.utf8 locale. Some systems (eg Cygwin and HP-UX, maybe Debian in the future) ship it. See for example these links:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522776
http://article.gmane.org/gmane.os.cygwin.xfree/20354 (better read the whole thread anyway, which is here: http://thread.gmane.org/gmane.os.cygwin.xfree/20069)


So I guess my question becomes: is Gentoo going to have a C.utf8 locale?
(although I probably know the answer already)

Thank you.
Comment 3 Rafał Mużyło 2010-04-25 20:10:49 UTC
Considering inputs in both Debian bug and mail thread,
perhaps the correct entry should be:
POSIX.UTF-8 UTF-8
but while those says that standard allows it,
this construct is not a part of a standard setup
(at least not yet).
Comment 4 SpanKY gentoo-dev 2010-04-29 22:46:52 UTC
not a bug in Gentoo.  if you want locales updated in glibc, then the correct bugzilla is here: http://sources.redhat.com/bugzilla/
Comment 5 Etaoin Shrdlu 2010-04-30 16:37:56 UTC
(In reply to comment #4)
> not a bug in Gentoo.  if you want locales updated in glibc, then the correct
> bugzilla is here: http://sources.redhat.com/bugzilla/

Ok thanks. I thought it was a distro thing rather than glibc.
Comment 6 SpanKY gentoo-dev 2010-04-30 19:46:06 UTC
afaik, every locale shipped with glibc should work fine.  if C.utf8 isnt working, then it's because glibc doesnt support it.  feel free to correct me.

as for the Debian bug report, unless i missed something, that is still open and not resolved.  so C.utf8 doesnt work in Debian either.  there was talk on the opengroup lists sometime ago on the topic of C.utf8, but i dont think that ever came to a conclusion.