Subject: Re: [htdig] unknown locale, but really strange, not the normal problem
From: Gilles Detillieux (firstname.lastname@example.org)
Date: Mon May 08 2000 - 14:58:46 PDT
According to Albert Kasper:
> Sorry, I'm not quite familiar with what is standing at the url you gave
> (some c-program). Could you please give me detailed instruction on how to
> check availability of locale?
Copy the C program from the message into a plain ASCII text file, save
it with a name like testloc.c, and then compile and run it as follows:
cc -O testloc.c -o testloc
It will spit out 256 lines, one for each character, each containing a
code like one of the ones I mentioned previously. Characters 192 through
255 (except 215 & 247) should be accented letters, but if the codes for
them are something like ----------c-?, then the locale is treating them
as control characters, which would suggest the locale is not working.
In this case, try other locales, one at a time, as an argument to
./testloc, until you find one that works.
> ----- Original Message -----
> From: "Gilles Detillieux" <email@example.com>
> To: "Albert Kasper" <firstname.lastname@example.org>
> Cc: <email@example.com>
> Sent: Friday, May 05, 2000 11:28 PM
> Subject: Re: [htdig] unknown locale, but really strange, not the normal
> > According to Albert Kasper:
> > > I'm using htdig on my site and want to enable search for umlauts.
> > > System is Red Hat Linux 6.2
> > >
> > > Directory /usr/share/locale exists, sub-Directory "de_DE", too.
> > > -----
> > > ls /usr/share/locale/de_DE
> > > LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME
> > > -----
> > >
> > > So this should be fine, too.
> > > I inserted in the conf-file the line "locale: de_DE", which should work
> > > fine.
> > > However, he still says "unknown locale"
> > > So i'm quite desperated, since the locale exists on my system.
> > > Any hints?
> > That is strange. Many systems have hopelessly broken implementations
> > of locales, but I didn't think Red Hat Linux would have a problem.
> > Locales didn't work in 4.2, but 5.0 (with updates), 5.1, 5.2, and 6.0
> > all worked fine, so I'd expect 6.1 and 6.2 to be OK too.
> > The following message from the archives contains a little test program
> > that can let you see the LC_CTYPE tables for any locale, to aid in finding
> > one that works.
> > http://www.htdig.org/mail/2000/01/0246.html
> > Look for lines that have -a-un-.gt---? or -al-n-.gt---? next to upper-
> > or lower-case accented characters as a sign the locale is working. The
> > "." above can be x or -, and the "?" may be b, - or ?.
> > If the de_DE locale works with this test program, then the problem must
> > be with your configuration. Are you sure the config file in which you
> > added the locale definition is the one htdig is using? Is there more than
> > one definition of locale in the file?
> > If the test program doesn't give correct results, then sadly it would
> > suggest that locales are broken again. Perhaps de_DE is broken, but some
> > other de_* locale, or any Western European locale, will work?
> > --
> > Gilles R. Detillieux E-mail: <firstname.lastname@example.org>
> > Spinal Cord Research Centre WWW:
> > Dept. Physiology, U. of Manitoba Phone: (204)789-3766
> > Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
> > ------------------------------------
> > To unsubscribe from the htdig mailing list, send a message to
> > email@example.com
> > You will receive a message to confirm this.
-- Gilles R. Detillieux E-mail: <firstname.lastname@example.org> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
------------------------------------ To unsubscribe from the htdig mailing list, send a message to email@example.com You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Mon May 08 2000 - 12:46:36 PDT