Compilation failed if Unicode char is in project name or path
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
Compilation failed if Unicode char is in project name or path.
Steps to reproduce:
Rename a Project1.pas to Projectö.pas and try to compile it. The result is (on command line):
C:\04 Test>set PATH=C:\FreepascalTest\fpc\bin\i386-win32
C:\04 Test>ppc386 projectö.pas
Free Pascal Compiler version 3.1.1 [2015/11/04] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling projectö.pas
Fatal: Cannot open file "projectö.pas"
Fatal: Compilation aborted
Additional information:
The same problem is, if there is a Unicode char in the path.
C:\04 Test”>set PATH=C:\FreepascalTest\fpc\bin\i386-win32
C:\04 Test”>ppc386 C:\04 Testö\project.pas
Warning: Only one source file supported, changing source file to compile from "C:\04" into "Testö\project.pas"
Free Pascal Compiler version 3.1.1 [2015/11/04] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling Testö\project.pas
Fatal: Cannot open file "project.pas"
Fatal: Compilation aborted
Mantis conversion info:
- Mantis ID: 28962
- OS: 7
- Build: 32226
- Platform: Windows
- Version: 3.1.1
- Monitored by: » @flyingsheep (Bart Broersma)