[Xlibs] locale support

Mike A. Harris mharris@www.linux.org.uk
Wed, 19 Nov 2003 12:36:47 -0500 (EST)


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:

1) Use system locale support

or

2) Have maintainers step forward to maintain the included locale 
   support for their platform

or

3) Fall into "unsupported" category

That allows us to trim the fat for the majority, while permitting
compatibility for the minority, without losing portability -
unless a particular platform has nobody interested in maintaining
their port.

Make sense?

-- 
Mike A. Harris