[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
doco setlocale
From: |
Kevin Ryde |
Subject: |
doco setlocale |
Date: |
Thu, 22 May 2003 10:52:04 +1000 |
User-agent: |
Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) |
A bit of polish to propose for the setlocale documentation.
* posix.texi (Locales): Clarify setlocale a bit, list all categories,
cross reference to libc.
I think it's better to refer to the libc manual then the gettext one,
since setlocale lives in libc and it's there that stuff like strftime
gets influenced.
Locales
=======
- Scheme Procedure: setlocale category [locale]
- C Function: scm_setlocale (category, locale)
Get or set the current locale, used for various
internationalizations. Locales are strings, for instance `sv_SE'.
If LOCALE is given then the locale for the given category is set
and the new value returned. If LOCALE is not given then the
current value of the category is returned. CATEGORY should be one
of the following values
- Variable: LC_ALL
- Variable: LC_COLLATE
- Variable: LC_CTYPE
- Variable: LC_MESSAGES
- Variable: LC_MONETARY
- Variable: LC_NUMERIC
- Variable: LC_TIME
A common usage is `(setlocale LC_ALL "")', which initializes all
categories based on standard environment variables (`LANG' etc).
For full details on categories and locale names *note Locales and
Internationalization: (libc)Locales..
posix.texi.setlocale.diff
Description: Text document
- doco setlocale,
Kevin Ryde <=