[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Locale in Emacs and Perl



On: Mon, 14 Sep 1998 14:44:30 -0400 (EDT) Sebastian Canagaratna writes:
> 
> I using Debian 1.31 and I ahve the following problem.
> Whenever I use emacs under X I get the warning:
> 
> locale not supported by C library, locale not changed
> 
> I am under the impression, though I may be wrong and this warning
> is not given when I use emacs outside X.
> 
> When I use perl ( when I use latex2html ) I get the perl warnings:
> 
> setting locale failed for the categories
> 
> LC_CTYPE  LC_COLLATE
> 
> and asking me to check settings
> 
> LC_ALL=(unset)
> LC_CTYPE=(unset) ... etc
> 
> fallind back to "C" locale.

Make sure the locales package is installed on your system.

> In both cases, aside from the warning everything seems to be
> working. How do I set these variables? man emacs and man perl did
> not give much help.  Any suggestions would be greatly appreciated.

In my case I have both LANG and LC_CTYPE set to de_DE, where de
denotes the language (german) and DE stands for the region (Germany,
other possibilty are Austria and Switzerland).

You probably want to set LC_CTYPE and LANG to en_US.  To get a feeling
what locales are available, take a look at the /usr/share/locales
directory.

You can get some (rather programmers related information) in the
manual locale(7).  I also found some information in the info manual
for libc.

Unfortunately, the end-user documentation is still unfound by me
(e.g., how the locale string may look like, ...).

	Torsten


Reply to: