Re: locale support
Eric Anholt <[email protected]> Wed, 19 Nov 2003 13:37:36 -0800
| Newsgroups | gmane.comp.freedesktop.xlibs.general |
|---|---|
| Message-ID | <1069277856.665.24.camel@leguin> |
On Wed, 2003-11-19 at 13:05, Owen Taylor wrote: > On Wed, 2003-11-19 at 12:36, Mike A. Harris wrote: > > On Wed, 19 Nov 2003, Harold L Hunt II wrote: > > > > >>>I dunno the exact differences. I do know that Xlib has over 1/4 > > >>>megabyte of Unicode conversion table that is essentially duplicating > > >>>what is in a modern libc. > > >>> - Jim > > >> > > >> > > >> Does Windows have the neccessary locale info? How about OS/2? > > > > > >Windows might not, but Cygwin does (and that's what matters). Don't > > >know about OS/2. > > > > Why not implement the ability for X to use the system locale > > information first, and make it compile time conditionally > > enabled. Default to using it on OS combinations it is known to > > work on, and fix problems as they arise. There's always fallback > > to existing code then to handle any problems that come up. In > > time, all relevant platforms will either: > > Note that this capability is largely already there, and already > used in XFree86 builds. The only thing that might be getting > duplicated now is Unicode and code conversion tables, but replacing > that with iconv() is not particularly easy, and definitely not > particularly portable. (I'm not sure *BSD even have iconv() support > yet; the names of character sets for iconv aren't at all portable > across systems.) There are two libiconv's available for FreeBSD (it's not part of libc), one of which is gnu's, which gets used by just about everything. -- Eric Anholt [email protected] http://people.freebsd.org/~anholt/ [email protected]