[fpc-pascal] Unicodestrings and Assign(File)

Jonas Maebe jonas.maebe at elis.ugent.be
Thu May 10 00:53:58 CEST 2012

On 09 May 2012, at 21:46, Marco van de Voort wrote:

> In our previous episode, Jonas Maebe said:
>>> Is it (already) possible to use Unicodestrings for file paths?
>> Only if your current ansi code page supports the characters used in the
>> unicodestring.  There are not unicodestring overloads yet in the RTL.
> I think Joerg means something else. The Unicode winapi functions on Windows
> have support for longer paths.

He said:

> I was able to access long paths (with many hundreds of characters)
> in the windows API functions FindFirstFileW (with Win32_Find_DataW
> data type) but I failed to open such files with Assign(File)/reset.
> Are they converted to (one byte) Ansistring internally?

So as far as I can see, he was in fact asking whether the regular RTL functions (such as assign/reset) already included unicodestring support. He already knew that it works fine if you use the Windows APIs directly.


More information about the fpc-pascal mailing list