On Sunday 29 June 2008 09.27:24 Vincent Snijders wrote: > How does the RTL support using unicode filenames (e.g. file names that > cannot be represented by the ansi char set)? > > For example the FileExists function takes a string which is encoded in > the system char set. If the system char set is UTF8, like most linuxes > and Mac OS X, then there is no problem. But on windows using a western > european charset, I cannot check for existence of a file with cyrilic > characters, even though I can enter them in the windows explorer and > create such files. > In MSEgui I use my own set of widestring based file utilities to overcome the problem. They are located in lib/common/msefileutils.pas and the systemspecific msesysintf.pas. The windows version currently converts the MSEgui widestring filenames to the system encoding before doing system calls, I plan to call the *W versions of the system routines instead if available (post version 1.8).
Martin _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal