[Lazarus] RTL functions and file system encoding issues

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Mar 12 13:28:53 CET 2008


On 12/03/2008, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
>  Solution in fpGUI and MSEgui.  Create your own RTL functions dependent
>  per platform.
>  eg:
>   fpgSetCurrentDirectory()
>     Under Linux it uses UTF-8 so is a wrapper for RTL SetCurrentDirectory.
>     Under Windows we have to convert UTF-8 to ANSI or WideString and
>  call the appropriate Windows.SetCurrentDirectory[A,W] functions.


It was just pointed out to me that not all Linux installations are
UTF-8 either (some older systems etc). So more black magic has to
happen for Linux's RTL wrapper functions as well.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the Lazarus mailing list