Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2023-08

passing unicode seach paths on windows

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

How to pass unicode search paths to fpc?

For example when passing a -Fu as UTF8 via a config file "@my.cfg", fpc says:
Path: "C:\pascal\...gibberish..." not found

Is there some flag I'm missing or does fpc not support unicode search paths on windows?

Tested with 3.2.2 and 3.3.1.

Mattias

Reply by email

Tomas Hajny
to Mattias Gaertner
Mattias Gaertner wrote 12 lines
Hi, How to pass unicode search paths to fpc? For example when passing a -Fu as UTF8 via a config file "@my.cfg", fpc says: Path: "C:\pascal\...gibberish..." not found Is there some flag I'm missing or does fpc not support unicode search paths on windows? Tested with 3.2.2 and 3.3.1.

First of all, I don't think that the compiler supports reading configuration files (search paths or whatever else) in a different codepage than the current ACP. Since that won't be UTF-8 on MS Windows, this is not supported. As far as I know, -Fc... is used only for source files, not for configuration files, and it's probably more appropriate that way. It might be possible to add special support for recognizing the BOMs and use that for deciding on the format, but nothing like that has been implemented yet for the compiler according to my knowledge.

Tomas

Reply by email