From: Henner Z. <he...@fr...> - 2002-05-09 16:01:26
|
Hi, > Yes, there is a constant called BUF_LENGTH in > src/native/org_gnu_readline_Readline.c. A typical quick and dirty > implementation :-( of the functions utf2ucs and ucs2utf. yeah, just seen it. > Solution: these functions should allocate a buffer of correct size (a maximum > of 2*strlen(line) is needed, since utf8 codes ISO-8859-x in at most 2 bytes). > The calling function should free the memory afterwards. .. this would be best. > I could do this next weekend (provided the weatherforecast is correct). Let me > know if you want to tackle this. I am not at home this weekend, so just go ahead ;-) ciao, -hen |