On Tue, 9 Jul 2002, Keith Packard wrote:
Ok, so now what do I do with applications which haven't called
setlocale (LC_ALL, )? Do I:
a) call setlocal (LC_ALL, ) myself?
I'm afraid this can have an unexpected side effect, which could
surprise/upset some application program developers.
b) use $LANG or $LC_CTYPE?
If this road is taken, it has to be determined which env.
variables have to be refered to in what order. AFAIK, SUS and POSIX say
that it's implementation-dependent. Since XF86 is used with many OS',
it'd be best to follow the 'local' convention. Then, I don't know how
to figure it out without calling setlocale(LC_CTYPE,). In case of Glibc,
If $LC_ALL is set, use it
else if $LC_CTYPE is set, use it
else if $LANG is set, use it.
c) Ignore the locale information and leave the
font language preference unset?
This might well be the best course along with documenting
that setlocale() should be called to make font matching/selection locale
dependent or that better still is to explicitly provide lang info when
invoking font selection APIs.
Jungshik
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts