Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
44a35bb5
Commit
44a35bb5
authored
Jan 11, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed debug statement
parent
022c9f0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
main.c
build/main.c
+1
-2
No files found.
build/main.c
View file @
44a35bb5
...
@@ -323,7 +323,7 @@ static int my_argc;
...
@@ -323,7 +323,7 @@ static int my_argc;
static
char
**
my_argv
;
static
char
**
my_argv
;
static
void
to_utf8
(
wchar_t
*
src
,
char
*
dst
,
size_t
dst_len
)
{
static
void
to_utf8
(
wchar_t
*
src
,
char
*
dst
,
size_t
dst_len
)
{
WideCharToMultiByte
(
CP_UTF8
,
0
,
src
,
wcslen
(
src
)
+
1
,
dst
,
dst_len
,
0
,
0
);
WideCharToMultiByte
(
CP_UTF8
,
0
,
src
,
-
1
,
dst
,
dst_len
,
0
,
0
);
}
}
static
void
init_utf8_argc_argv
(
void
)
{
static
void
init_utf8_argc_argv
(
void
)
{
...
@@ -336,7 +336,6 @@ static void init_utf8_argc_argv(void) {
...
@@ -336,7 +336,6 @@ static void init_utf8_argc_argv(void) {
for
(
i
=
0
;
i
<
my_argc
;
i
++
)
{
for
(
i
=
0
;
i
<
my_argc
;
i
++
)
{
to_utf8
(
wargv
[
i
],
buf
,
sizeof
(
buf
));
to_utf8
(
wargv
[
i
],
buf
,
sizeof
(
buf
));
my_argv
[
i
]
=
strdup
(
buf
);
my_argv
[
i
]
=
strdup
(
buf
);
printf
(
"init_utf8_argc_argv: [%s] [%ls]
\n
"
,
my_argv
[
i
],
wargv
[
i
]);
}
}
LocalFree
(
wargv
);
LocalFree
(
wargv
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment