[fpc-pascal] Unicode filenames

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Sun Jun 29 20:21:51 CEST 2008


On Sun, Jun 29, 2008 at 6:32 AM, Marco van de Voort <marcov at stack.nl> wrote:
> - If the border condition that w9x must remain supported persists, this
>  becomes a magnitude more work. A way to deal with this has to be found
>  (two win32 FPC releeases, one advocated as D2..D2006 compat + w9x, one as
>  NT + Unicode/Tiburon?)

procedure AnyFileRoutineInWin32(AFileName: widestring);
begin
  if UnicodeEnabledOS then SomeWin32APIW()
  else AnsiToWideString(SomeWin32ApiA())
end;

Not very hard to keep 9x support.

-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list