[Ada] Project_Dir should not modify the case of its path name

Submitted by Arnaud Charlet on Oct. 4, 2012, 9:06 a.m.


Message ID 20121004090606.GA28747@adacore.com
State New
Headers show

Commit Message

Arnaud Charlet Oct. 4, 2012, 9:06 a.m.
This patch ensures that when project'Project_Dir is used, the path will
not be modified, even on platforms where the file names are case
insensitive, such as Windows.

Tested on x86_64-pc-linux-gnu, committed on trunk

2012-10-04  Vincent Celier  <celier@adacore.com>

	* prj-proc.adb (Process_Package_Declaration): Use project
	directory display path name as the value of 'Project_Dir.

Patch hide | download patch | download mbox

Index: prj-proc.adb
--- prj-proc.adb	(revision 192066)
+++ prj-proc.adb	(working copy)
@@ -1588,7 +1588,7 @@ 
-                     Name_Id (Project.Directory.Name),
+                     Name_Id (Project.Directory.Display_Name),
                      Shared.Packages.Table (New_Pkg).Decl,