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
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Martin Willers
KWSys
Commits
65b36ede
Commit
65b36ede
authored
10 years ago
by
Clinton Stimpson
Committed by
Brad King
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Encoding: Fix testProcess to work with unicode paths.
Change-Id: I23a27b25bf7a2f8f8785c575e1e595f785f9db98
parent
697b1401
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testProcess.c
+15
-0
15 additions, 0 deletions
testProcess.c
with
15 additions
and
0 deletions
testProcess.c
+
15
−
0
View file @
65b36ede
...
...
@@ -11,11 +11,13 @@
============================================================================*/
#include
"kwsysPrivate.h"
#include KWSYS_HEADER(Process.h)
#include KWSYS_HEADER(Encoding.h)
/* Work-around CMake dependency scanning limitation. This must
duplicate the above list of headers. */
#if 0
# include "Process.h.in"
# include "Encoding.h.in"
#endif
#include
<stdio.h>
...
...
@@ -393,6 +395,19 @@ int runChild(const char* cmd[], int state, int exception, int value,
int
main
(
int
argc
,
const
char
*
argv
[])
{
int
n
=
0
;
#ifdef _WIN32
int
i
;
char
new_args
[
10
][
_MAX_PATH
];
LPWSTR
*
w_av
=
CommandLineToArgvW
(
GetCommandLineW
(),
&
argc
);
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
kwsysEncoding_wcstombs
(
new_args
[
i
],
w_av
[
i
],
_MAX_PATH
);
argv
[
i
]
=
new_args
[
i
];
}
LocalFree
(
w_av
);
#endif
#if 0
{
HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE);
...
...
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