On Sat, 29 Dec 2007 21:25:35 +0300
12 12 <[EMAIL PROTECTED]> wrote:
> * "Vasily I. Volchenko" <[EMAIL PROTECTED]> [Sat, 29 Dec 2007 19:29:19
> +0300]:
> > It's a known problem, Win32 (for now except for compiled with option
> > -dWindowsUnicodeSupport or something like it) and gtk-1 interfaces
> > use native 1-byte encoding while gtk2 interface uses utf8 anyway
> > (even if LANG=ru_RU.CP1251).
>
> Is there no way to make cross-platform application without writing
> different code
> for widgetset Win32 and GTK2?
Compiled with -dWindowsUnicodeSupport the LCL uses UTF-8 under windows
too. That means all LCL control strings expect UTF8.
The missing piece is the RTL. All filenames still use the system
encoding. For example:
StringList.LoadFromFile(UTF8ToAnsi(Edit1.Text));
This should work under all platforms, but I didn't test.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives