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
- [Fonts]Using current locale in font selection Keith Packard
- [Fonts]Re: [I18n]Using current locale in font sele... Owen Taylor
- Re: [Fonts]Re: [I18n]Using current locale in f... Erik van der Poel
- [Fonts]Re: [I18n]Using current locale in font ... Keith Packard
- [Fonts]Re: [I18n]Using current locale in f... Jungshik Shin
- Re: [Fonts]Re: [I18n]Using current loc... Jungshik Shin
- Re: [Fonts]Re: [I18n]Using curren... Keith Packard
- [Fonts]Re: [I18n]Using current locale in f... Owen Taylor
- [Fonts]Re: [I18n]Using current locale ... Erik van der Poel
- Re: [Fonts]Re: [I18n]Using curren... Keith Packard
- Re: [Fonts]Re: [I18n]Using cu... Jungshik Shin
- Re: [Fonts]Re: [I18n]Usin... Keith Packard
- Re: [Fonts]Re: [I18n]Usin... Owen Taylor
- Re: [Fonts]Re: [I18n]Usin... Keith Packard
- [Fonts]Re: POSIX:2001 fre... Markus Kuhn
- Re: [Fonts]Using current locale in font selection Juliusz Chroboczek
- Re: [Fonts]Using current locale in font select... Brian Stell
- Re: [Fonts]Using current locale in font se... Juliusz Chroboczek
- Re: [Fonts]Using current locale in fon... Keith Packard
- Re: [Fonts]Using current locale in font se... Keith Packard
- Re: [Fonts]Using current locale in font select... Keith Packard
