[Y-devel] Still figuring out the code

Mark Thomas mark at www.y-windows.org
Sun Feb 8 23:10:53 GMT 2004


Hi Alex,

Sorry for the slightly delayed reply.

I'm hoping to have Y be fully internationalised, using unicode throughout.
My current thoughts are for the in-server strings to be stored in
machine-endian UCS-4 (i.e. each codepoint stored in a 32-bit integer, no
encoding at all), and have the client<->server communication and stored
data in UTF-8 (as it is endian independent and a simple encoding).

Clients, of course, can use whatever encoding they like internally, as
long as they communicate to the server in UTF8 or vanilla ASCII.

The current implementation uses 8-bit chars everywhere and pretends they
are UTF-8 in most situations (this was me being under pressure to finish
my final-year project on time).  Perhaps a good early step would be to
convert all in-server char strings to wchar_t strings and put a
UTF8<->UCS4 conversion algorithm in there somewhere.  (Volunteers?).

Regards,

  Mark.
-- 
|| Mark Thomas
|| efaref.net
||
|| Gotta run, the cat's caught in the printer.



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved