Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sylvain Joubert
KWSys
Commits
07e53e37
Commit
07e53e37
authored
19 years ago
by
Bill Hoffman
Browse files
Options
Downloads
Patches
Plain Diff
BUG: fix for bug 1717 incorrect path sent to dart server
parent
5f96d3a1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SystemTools.cxx
+20
-0
20 additions, 0 deletions
SystemTools.cxx
SystemTools.hxx.in
+8
-0
8 additions, 0 deletions
SystemTools.hxx.in
with
28 additions
and
0 deletions
SystemTools.cxx
+
20
−
0
View file @
07e53e37
...
...
@@ -2228,10 +2228,30 @@ kwsys_stl::string SystemTools::CollapseFullPath(const char* in_path,
// Update the translation table with this potentially new path.
SystemTools
::
AddTranslationPath
(
newPath
.
c_str
(),
in_path
);
SystemTools
::
CheckTranslationPath
(
newPath
);
#ifdef _WIN32
newPath
=
SystemTools
::
GetActualCaseForPath
(
newPath
.
c_str
());
#endif
// Return the reconstructed path.
return
newPath
;
}
//----------------------------------------------------------------------------
kwsys_stl
::
string
SystemTools
::
GetActualCaseForPath
(
const
char
*
p
)
{
#ifndef _WIN32
return
p
;
#else
std
::
string
path
;
if
(
!
SystemTools
::
GetShortPath
(
p
,
path
))
{
return
path
;
}
char
buffer
[
MAX_PATH
+
1
];
::
GetLongPathName
(
path
.
c_str
(),
buffer
,
MAX_PATH
+
1
);
return
buffer
;
#endif
}
//----------------------------------------------------------------------------
void
SystemTools
::
SplitPath
(
const
char
*
p
,
kwsys_stl
::
vector
<
kwsys_stl
::
string
>&
components
)
...
...
This diff is collapsed.
Click to expand it.
SystemTools.hxx.in
+
8
−
0
View file @
07e53e37
...
...
@@ -241,6 +241,14 @@ public:
*/
static const char* GetExecutableExtension();
/**
* Given a path that exists on a windows machine, return the
* actuall case of the path as it was created. If the file
* does not exist path is returned unchanged. This does nothing
* on unix but return path.
*/
static kwsys_stl::string GetActualCaseForPath(const char* path);
/**
* Given the path to a program executable, get the directory part of
* the path with the file stripped off. If there is no directory
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment