I applied the following patch (rev 8893).

It is more an fpc issue than a lazarus issue, but laz suffers most.

Can some russians users please test the patch (compile with -dMultiLocale)
and say if it works.
Comments?

Mattias


Begin forwarded message:

Date: Wed, 08 Mar 2006 19:15:38 +0300
From: ______________ ________________ ________________ <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: UTFToAnsi?


Last half a year Lazarus has some troubles with non-iso single-byte locales,
for example, cp1251 and koi8-r. This problem forced to using Unicode, which
is not fine sutable for main (for linux) gtk-interface (gtk2 in lazarus has
much problems now).
Some times ago a mechanism of translation was included by default. This
requies some options (NoUTF8Translation as I remember) for using such
encodings (they can't be translated "to ansi"). But in is a good idea to
translate not to ansi, but to default charset. iconv procs are to be used
for such purpose, but something happens when they are used (see
lconv.pas.iconv, it doesn't work, why?). I used workaround - my own partial
translator to cp1251 and koi8-r. See this patch (translation.pas was
changed). And a 'workaround to a workaround' - using a shell 'iconv' utility
for other charsets.

Vasily Volchenko


Attachment: patch.gz
Description: application/gz

Reply via email to