On Tue, Dec 31, 2002 at 11:25:40AM -0500, Micah Galizia wrote:
> Abigail Brady wrote:
> >On Tue, 2002-12-31 at 16:02, Micah Galizia wrote:
> >
> >>Hello, I was wondering if anyone could give me some insight into fixing 
> >>my locale problem.  Whenever I load a program (such as xfontsel, xman, 
> >>etc), I get locale warnings such as:
> >
> >
> >It might help to know what your locale variables are actually to set
> >to...
> >
> 
> Origonally they were unset, so they defaulted to POSIX (which i believe 
> is an alias to C?).  At that time, I was getting the warrings/errors. 
> Currently LC_*="en_CA", and LANG="POSIX" (still).

I believe LC_CTYPE is the only one that matters to Xlib (of course
LC_ALL overrides it).  You might want to check locale.dir and
locale.alias files in /usr/X11R6/lib/X11/locale/ to see if en_CA is
mentioned there, and if there's a colon after the first field.  I'm not
sure which is the newer format, on Debian there are two entries -- one
with a colon, another one without:

   $ cd /usr/X11R6/lib/X11/locale/ && grep en_CA locale*
   locale.alias:en_CA                                           en_CA.ISO8859-1
   locale.alias:en_CA.iso88591                                  en_CA.ISO8859-1
   locale.alias:en_CA.ISO-8859-1                                en_CA.ISO8859-1
   locale.alias:en_CA.ISO_8859-1                                en_CA.ISO8859-1
   locale.alias:en_CA:                                          en_CA.ISO8859-1
   locale.alias:en_CA.iso88591:                                 en_CA.ISO8859-1
   locale.alias:en_CA.ISO-8859-1:                               en_CA.ISO8859-1
   locale.alias:en_CA.ISO_8859-1:                               en_CA.ISO8859-1
   locale.dir:iso8859-1/XLC_LOCALE                      en_CA.ISO8859-1
   locale.dir:en_US.UTF-8/XLC_LOCALE                    en_CA.UTF-8
   locale.dir:iso8859-1/XLC_LOCALE:                     en_CA.ISO8859-1
   locale.dir:en_US.UTF-8/XLC_LOCALE:                   en_CA.UTF-8

(I'm running XFree86 4.2.1.1, can't say anything about 4.2.99.3).

> > > Warning: locale not supported by Xlib, locale set to C

That's the error message you get if you set LC_ALL/LC_CTYPE to something
nonsensical.

> > > Warning: X locale modifiers not supported, using default

That's interesting, do you have XMODIFIERS in your environment?

> > > Warning: app-defaults file not properly installed.

This is starting to smell like a broken X installation.  I think X is looking
for its files in the wrong places.  To alleviate your locale problems
you might want to try setting

  XLOCALEDIR=/usr/X11R6/lib/X11/locale

> > > Warning: Unable to load any usable fontset

Most likely this is caused by missing locale files.

HTH,
Marius Gedminas
-- 
The difference between Microsoft and 'Jurassic Parc':
In one, a mad businessman makes a lot of money with beasts that should be
extinct.
The other is a film.

Attachment: msg01260/pgp00000.pgp
Description: PGP signature

Reply via email to