jak ziskat charset z LC_CTYPE?
Karel Zak
zakkr na zf.jcu.cz
Pondělí Červenec 2 07:35:51 CEST 2001
On Fri, Jun 29, 2001 at 03:42:46PM +0200, Stanislav Meduna wrote:
> AFAIK to nejde - to su jednocestne funkcie. T.j. clovek zada
> LC_* a nastavia sa spravne veci, ale neda sa z nich naspat
> zistit charset.
Neveste nam buliky na nos... viz. man setlocale()
If locale is NULL, the current locale is only queried, not
modified.
tedy:
printf("LC_CTYPE je '%s'\n", setlocale(LC_CTYPE, NULL));
... neni to tedy ani tak jak nekdo radil setlocale(LC_CTYPE,"")
protoze o tom rika manual:
If locale is "", each part of the locale that should be
modified is set according to the environment variables.
^^^^^^^^
Karel
--
Karel Zak <zakkr na zf.jcu.cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
Další informace o konferenci Linux