Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59334 - redhat-artwork won't build with LC_CTYPE set to a utf8 locale
Summary: redhat-artwork won't build with LC_CTYPE set to a utf8 locale
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-03 21:52 UTC by Ryan Lortie
Modified: 2004-08-04 16:00 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 Ryan Lortie 2004-08-03 21:52:29 UTC
When building redhat-artwork (all versions for as long as I can remember):

intltool doesn't like UTF-8 locales.  Try rerunning with eg: LANG=en_US

This happens if you have a utf8 LC_CTYPE.

There is a line in the ebuild to set LANG=C.  It does not work.

This is because LC_CTYPE overrides LANG, so even if you set LANG to a non-utf8 locale, you still have problems.  The proper way to fix this is to set LC_ALL=C (LC_ALL overrides everything.)

Cheers.
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2004-08-04 05:20:02 UTC
what are your LC* settings? I have been running it fine with en_GB.UTF-8 for a long time. i don't think it is a UTF-8 problem, but a locale specific problem.
Comment 2 Ryan Lortie 2004-08-04 06:09:47 UTC
desrt@peloton desrt $ locale
LANG=
LC_CTYPE=en_CA.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
desrt@peloton desrt $ export LANG=C
desrt@peloton desrt $ locale  # observe - no affect on ctype
LANG=C
LC_CTYPE=en_CA.UTF-8
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
desrt@peloton desrt $ unset LANG
desrt@peloton desrt $ export LC_ALL=C
desrt@peloton desrt $ locale # observe - total effect on everything
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
desrt@peloton desrt $

I should note that this works:
LC_ALL=C emerge redhat-artwork

It's just a one-liner change in the ebuild.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2004-08-04 16:00:26 UTC
alrighty, added to redhat-artwork-0.96. thanks for your analysis and report