From: Leon B. <le...@bo...> - 2006-02-17 17:10:35
|
On Friday 17 February 2006 09:59 am, Raymond Martin wrote: > Hi, > I'd like to compile Lush with wide character support so that unicode can be used > in conjunction with locales, but I don't see where to do this. 'configure' makes no > mention of an option for this. Where to start? You'd have to rewrite the string functions to work properly. Most are in src/string.c, and some compiled versions in lsh/compiler/dh-macros.lsh. I already made a few changes to properly display multibyte characters in strings. Search for 'HAVE_WCHAR_T' in the file src/string.c. But then I encountered backward compatibility problems because some programs use strings as containers for arrays of bytes. I had to backtrack (see str_chr and str_asc) See also functions {explode,implode}-{bytes,char} - L. |