Skip to content

Commit 4d5bd17

Browse files
author
automatic-merge
committed
Merge remote branch 'origin/master' into edge
2 parents 8b98a38 + 64b4568 commit 4d5bd17

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

cli/src/gps-cli.adb

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ procedure GPS.CLI is
120120
if Single_File = null then
121121
Append (Command, "None, ");
122122
else
123-
Append (Command, """" & Single_File.all & """, ");
123+
Append (Command, "r""" & Single_File.all & """, ");
124124
end if;
125125

126126
if Follow_Closure then
@@ -129,7 +129,7 @@ procedure GPS.CLI is
129129
Append (Command, "False, ");
130130
end if;
131131

132-
Append (Command, """" & Project_Name.all);
132+
Append (Command, "r""" & Project_Name.all);
133133

134134
-- Add a ".gpr" if needed
135135
if not (Project_Name'Length > 3
@@ -139,7 +139,7 @@ procedure GPS.CLI is
139139
Append (Command, ".gpr");
140140
end if;
141141
Append (Command, """, ");
142-
Append (Command, """" & Oracle_File.all & """)");
142+
Append (Command, "r""" & Oracle_File.all & """)");
143143

144144
-- Launch the Python command
145145
Script.Execute_Command

gnatdoc/src/gnatdoc-frontend.adb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2411,7 +2411,7 @@ package body GNATdoc.Frontend is
24112411
then
24122412
Update_Scope (Get_Full_View (E));
24132413

2414-
elsif not (Get_Entities (Scope).Contains (E)) then
2414+
elsif not Get_Entities (Scope).Contains (E) then
24152415
Update_Scope;
24162416
end if;
24172417
end Decorate_Scope;

testsuite/tests/cli.adareducer/test.cmd

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ echo ""
44

55
echo "## TEST MISSING PROJECT"
66
gnatstudio_cli adareducer
7-
echo ""
87

8+
# Test that we can accept strings that contain "\U"
9+
# without Python trying to decode an Unicode char.
10+
gnatstudio_cli adareducer -P "C:\Users\doesnotexist.gpr" -s "C:\Users\s.sh"
11+
12+
echo ""
913
echo "## TEST MISSING ORACLE"
1014
gnatstudio_cli adareducer -P p
1115
echo ""

testsuite/tests/cli.adareducer/test.out

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Usage: gnatstudio_cli [switches] [arguments]
99

1010
## TEST MISSING PROJECT
1111
Specify a project with the -P switch
12+
project C:\Users\doesnotexist.gpr not found
1213

1314
## TEST MISSING ORACLE
1415
Specify an oracle with the -s/--oracle_script switch

0 commit comments

Comments
 (0)