On Sun, Sep 03, 2006 at 09:47:50PM +0200, Georg Baum wrote:

> I believe that the attached patch should make the unicode conversions work 
> on little and big endian machines, and removes the uncertainty whether 
> UCS-4 is LE or BE.

Yep. With this patch I can load old LyX files when using the qt3
frontend. Without it I get hollow squares on screen, instead.
It makes no difference with qt4.

> Using UCS4-INTERNAL and memmove() the result as suggested by Angus would be 
> even better, but it seems that it is not available on windows.

I am not sure I understand what you mean. This is what I get on cygwin:

$ iconv -l | grep UCS
ISO-10646-UCS-2 UCS-2 CSUNICODE
UCS-2BE UNICODE-1-1 UNICODEBIG CSUNICODE11
UCS-2LE UNICODELITTLE
ISO-10646-UCS-4 UCS-4 CSUCS4
UCS-4BE
UCS-4LE
UCS-2-INTERNAL
UCS-2-SWAPPED
UCS-4-INTERNAL
UCS-4-SWAPPED

> Comments and tests on windows and Mac PPC are welcome.

This patch is needed when using the qt3 frontend on Windows.

-- 
Enrico

Reply via email to