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

login
register
mail settings
Submitter Arnaud Charlet
Date Oct. 4, 2012, 9:06 a.m.
Message ID <20121004090606.GA28747@adacore.com>
Download mbox | patch
Permalink /patch/189066/
State New
Headers show

Comments

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

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