Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28419 - emerge Monafont fails if LC_CTYPE uses UTF-8
Summary: emerge Monafont fails if LC_CTYPE uses UTF-8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mamoru KOMACHI (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-10 23:12 UTC by Henry Yang
Modified: 2003-09-11 15:04 UTC (History)
1 user (show)

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


Attachments
The error message (ignore the progress bar glitches) (emerge_monafont_2.90__output,871.97 KB, text/plain)
2003-09-11 11:48 UTC, Henry Yang
Details
The error message (ignore the progress bar glitches) (emerge_monafont_2.90__output,871.97 KB, text/plain)
2003-09-11 11:49 UTC, Henry Yang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Yang 2003-09-10 23:12:26 UTC
When building monafont, the builder will take the locale envirnment variables 
into consideration and it will fail if LC_CTYPE is set to any UTF-8 encodings. 
One posible solution is to set LC_ALL to "POSIX" or "C" in the ebuild file. It 
is advised that NO ebuilds should depend on the locale set by the envirnment 
variables.

Reproducible: Always
Steps to Reproduce:
1. define a UTF-8 locale by typing the following:
# localedef -v -c -i en_CA -f UTF-8 en_CA.UTF-8
You can replace en_CA with other languages

2. run the following:
LC_CTYPE=en_CA.UTF-8 emerge monafont


Actual Results:  
IT will spit out tons of warnings about invalid UTF-8 characters and ultimately 
fail.

Expected Results:  
The emerge should succedd with very little warnings

I created another locale, ja_JP.SJIS (created with localedef). The following 
locale all passed with little warnings:

C
POSIX
ja_JP.SJIS

I haven't tested to see if those three locales will generate different result, 
and I suspect that the package, monafont, should only be built under one locale 
(very likely ja_JP.SJIS), and other locales might generate obscure bugs even if 
it was built without errors (such as C or POSIX).
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-09-11 00:50:45 UTC
Actually it doesn't fail to build here even though I get lots of errors 
(after I added `export PERL_BADLANG=0` to src_compile() section
all those errors went away).  I tested both monafont-2.22 and monafont-2.90
with LC_CTYPE=en_CA.UTF-8.

Could you sent your `emerge info` and the version of monafont you tried?
The full log of failed emerge will also help.
Comment 2 Henry Yang 2003-09-11 11:48:26 UTC
Created attachment 17516 [details]
The error message (ignore the progress bar glitches)

emerge info:
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1,
2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Pentium III (Coppermine)
distcc 2.10 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -fomit-frame-pointer -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -fomit-frame-pointer -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm crypt encode foomaticdb gif imlib jpeg libg++ mad mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 zlib gdbm berkdb slang
readline tetex aalib svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl
perl python oggvorbis gtk qt motif opengl acpi acpi4linux apache2 cjk directfb
doc emacs fbcon freewnn gtk2 icc imap jikes leim maildir nocardbus samba snmp
sse tiff vim-with-x wmf -oss -avi -cups -kde -gnome -xmms -xv -arts"


locale:

LANG=en_CA
LC_CTYPE=en_CA.UTF-8
LC_NUMERIC="en_CA"
LC_TIME="en_CA"
LC_COLLATE="en_CA"
LC_MONETARY="en_CA"
LC_MESSAGES="en_CA"
LC_PAPER="en_CA"
LC_NAME="en_CA"
LC_ADDRESS="en_CA"
LC_TELEPHONE="en_CA"
LC_MEASUREMENT="en_CA"
LC_IDENTIFICATION="en_CA"
LC_ALL=
Comment 3 Henry Yang 2003-09-11 11:49:28 UTC
Created attachment 17517 [details]
The error message (ignore the progress bar glitches)

emerge info:
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1,
2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Pentium III (Coppermine)
distcc 2.10 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -fomit-frame-pointer -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -fomit-frame-pointer -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm crypt encode foomaticdb gif imlib jpeg libg++ mad mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 zlib gdbm berkdb slang
readline tetex aalib svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl
perl python oggvorbis gtk qt motif opengl acpi acpi4linux apache2 cjk directfb
doc emacs fbcon freewnn gtk2 icc imap jikes leim maildir nocardbus samba snmp
sse tiff vim-with-x wmf -oss -avi -cups -kde -gnome -xmms -xv -arts"


locale:

LANG=en_CA
LC_CTYPE=en_CA.UTF-8
LC_NUMERIC="en_CA"
LC_TIME="en_CA"
LC_COLLATE="en_CA"
LC_MONETARY="en_CA"
LC_MESSAGES="en_CA"
LC_PAPER="en_CA"
LC_NAME="en_CA"
LC_ADDRESS="en_CA"
LC_TELEPHONE="en_CA"
LC_MEASUREMENT="en_CA"
LC_IDENTIFICATION="en_CA"
LC_ALL=
Comment 4 Henry Yang 2003-09-11 11:51:47 UTC
note that the lcoale en_CA.UTF-8 was generated wit hthe following command:

localedef -v -c -i en_CA -f UTF-8 en_CA.UTF-8
Comment 5 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-09-11 15:04:47 UTC
I reconfirmed your bug with
`LANG=en_CA LC_CTYPE=en_CA.UTF-8 emerge monafont`
and adding LC_CTYPE=C in src_compile() solved the problem.
Thanks for reporting.